Local Development - Juules32/pokelink GitHub Wiki

Backend

  • Have a postgres database running.
  • Navigate to /backend
  • Copy .env.example to .env.development and fill in the values
  • Run the following commands:
pip install -r requirements.txt                 # Install dependencies
python pokemon_data_generation.py               # Generate pokemon JSON data from pokeAPI
python graph_data_generation.py                 # Generate graph from pokemon data
python setup.py                                 # Generate tables and template puzzles on the DB
uvicorn main:app --reload --port 80             # Run the webserver

Frontend

  • Navigate to /frontend
  • Copy .env.example to .env.development and fill in the values
  • Run the following copmmands:
npm i                                           # Install dependencies
npm run dev                                     # Run the webserver