Preferably, first create a virtualenv and activate it, perhaps with the following command:
virtualenv -p python3 venv
source venv/bin/activate
REMIS - REMIVE it pip freeze > requirements.txt
Next, to to get the dependencies run command provided bllow.
pip install -r requirements.txt
Next, initialize the database python manage.py seed_db
.
Finally run the app with python wsgi.py
To run the test suite, simply pip install it and run from the root directory like so
pip install pytest
pytest
- replace any REST API testing from POSTMAN with pytest
- add test for all model functions
- add get users test
- add create new user test
- add update user test
- add delete user test
- add users endpoint
- add votes endpoint