Skip to content

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.

  1. 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

  1. Clone the repository in a new folder. git clone https://github.com/emanuelbrea/chess-opening-generator.git

  1. Install the dependencies with pip install -r requirements.txt

  1. Install postgreSQL from https://www.postgresql.org/download/ if not already.

  1. Import the database from the dump file.

  1. Check that .env file points to the database. Usually the URL of the database is something like: postgresql://username:password@localhost:5432/postgres

  1. Run flask --app opening_generator --debug run . It will start on port 5000.
Clone this wiki locally