An open API service indexing awesome lists of open source software.

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

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
```