This is the backend of our Software Engineering project, which utilises Django's own ORM to model the relations between our different entities and serialise the models, to serve a RESTful API. Data is pulled into the backend using a Data Access Object (DAO) before serving it with business layer logic.
pip install -r requirements.txt
cd backendProject
- Get the sqlite file from @neozhixuan
- Navigate to
apps.py
and comment out every line ofupdate_model_from_firebase()
python manage.py makemigrations
python manage.py migrate
- Navigate to
apps.py
and uncomment every line ofupdate_model_from_firebase()
- Optional:
python manage.py createsuperuser
to create your own user python manage.py runserver
When you have started http://127.0.0.1:8000/, you can navigate around:
- http://127.0.0.1:8000/admin/ and login to your user
- http://127.0.0.1:8000/api/orderdata/