https://github.com/vbetsch/rpg
🎮 A Console Role Play Game in buildings
https://github.com/vbetsch/rpg
json mysql python
Last synced: 7 months ago
JSON representation
🎮 A Console Role Play Game in buildings
- Host: GitHub
- URL: https://github.com/vbetsch/rpg
- Owner: vbetsch
- Created: 2022-06-05T03:43:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-11T10:09:26.000Z (about 4 years ago)
- Last Synced: 2024-12-29T00:52:07.927Z (over 1 year ago)
- Topics: json, mysql, python
- Language: Python
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RPG
A role play game
## Install
1. Clone the repository
```bash
git clone https://github.com/Reyfey/rpg.git
```
2. Run `seeder.sql` to generate database
```bash
mysql -u [user] -p[password] < db/seeder.sql
```
3. Run `data.sql` if you want testing data
```bash
mysql -u [user] -p[password] < db/data.sql
```
4. Copy the example configuration file
```bash
cp database.example.json database.json
```
and replace the parameters to connect to your database
5. (Optional) Create virtual environment for python
```bash
python -m venv venv
chmod +x venv/bin/activate
./venv/bin/activate
```
6. Install the dependencies
```bash
pip install -r requirements.txt
```
7. Finally, run and enjoy :)
```bash
python main.py
```