This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Segfaulters Team Wiki
Ahmed Jaafar edited this page May 7, 2021
·
7 revisions
Simulator Backend
- Ahmed Jaafar (ahmedjaafar6) - Team Leader
- Zetang Lei (zetangL) - Secretary
- Matteo Baeyens (matteoBaeyens) - Integration Liaison
- Rahul Gajawada (rahulgajawada) - Customer Liaison
- Calvin Chai (NightDawnEX) - Software Engineer
- Eilat Tabak (eilattabak) - Project Manager
https://docs.google.com/document/d/1iL5RgbVrZR_w7PUNcr92rXpdHn7GSKCuI8v04Ba1xGY/edit?usp=sharing
- Be sure that python3 is installed and in the Environment Variable (Pip works better for Django than Conda)
- Clone the project to your machine
git clone https://github.com/david-fisher/320-S21-Track2.git
- Navigate to the "320-S21-Track2\segfault" folder in terminal and install the dependencies (django, djangorestframework, and psycopg2) by running
pipenv shell
thenpipenv install -r requirements.txt
("requirements.txt" has django, djangorestframework, and psycopg2. The versions of those might change in the future, so you can update this txt file with the new versions if you want) - If there have been changes made to the database, run
python manage.py makemigrations
thenpython manage.py migrate
(It is harmless to run these even if there haven't been any database changes) - Make sure you're connected the correct database (Done through "320-S21-Track2\segfault\segfault", refer to Django documentation for more details)
- Run the server
python manage.py runserver
( The default port is at localhost:8000, this can be changed throughpython manage.py runserver 0.0.0.0:<port number>
) - To access the endpoints, put "/api" after the "localhost:8000" in the URL