This project features a backend implemented in the Python Django Rest Framework
- Download the .zip file/clone repository
- Install the python package manager Pip if it's not already installed using the instructions here
- Next, install pipenv with the command
pip install --user pipenv
- Once these are installed,
cd giant_machines_challenge
- Run
pipenv install --ignore-pipfile
to install pacakage dependencies and activate virtual environment - Run
python manage.py makemigrations
followed bypython manage.py migrate
(make sure to be in the same directory withmanage.py
) - Start the Django api server by running:
python manage.py runserver
- The virtual environment shell can be ended with the command
exit
- To restart the virtual environment use
pipenv shell
- API tests can be run with
python manage.py test