This is an API built with Flask. It contains information on companion characters in the game Baldur's Gate 3.
- Clone this repo:
git clone git@github.com:lanxeyu/flask_api.git - In the project folder, create a .flaskenv (or .env if .flaskenv is not recognized) file and specify the following parameters within the file:
FLASK_APP=app
FLASK_DEBUG=1
DB_URL=database URL of your choice - Open a terminal in the project folder and enter:
pip install pipenv - Install dependencies:
pipenv install - Initialize database:
pipenv run seed - Start the API:
pipenv run dev - Access the API on localhost:5000