Flask / SQLAlchemy API containing wizard characters, potions and spells
- Create a virtual environment, for instance using pyenv (the code has been developed and tested using Python 3.6.10)
- Enable the virtual environment
- Run the following command to install the Python libraries (tested to work with pip 18.1):
pip install -r requirements.txt - Run the following command to setup up the database:
python setup.py
- Run the following command to run the Flask development server:
flask run - Go to http://127.0.0.1:5000/ to view the Swagger documentation of the API
- The results of the endpoint GET /characters can be sorted and filtered
- Run the following command to run the tests proving the API is working properly:
pytest