-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Emanuel Brea edited this page Oct 22, 2022
·
2 revisions
Welcome to the chess-opening-generator wiki! By the end of this tutorial, you should be able to run my chess repertoire API in your local computer.
- Check if you have python installed with
python -V
. If not, download it from https://www.python.org/downloads/ Preferably it should be > 3.7
- Clone the repository in a new folder.
git clone https://github.com/emanuelbrea/chess-opening-generator.git
- Install the dependencies with
pip install -r requirements.txt
- Install postgreSQL from https://www.postgresql.org/download/ if not already.
- Import the database from the dump file.
- Check that .env file points to the database. Usually the URL of the database is something like: postgresql://username:password@localhost:5432/postgres
- Run
flask --app opening_generator --debug run
. It will start on port 5000.