This is the back-end counterpart to the full-stack Datr Prototype. A full description of the app can be found there.
-
Please Note that you must place the following steps in a separate directory from the front end app!!!!
-
Clone the repo and cd into the
d8r-api
directory you made after setting up the react app:git clone [email protected]:kurtkrafft1/dater_prototype_api.git
-
Navigate to the root directory:
cd dater_prototype_api
-
Set up your virtual environment:
python -m venv daterEnv
-
Activate virtual environment:
source ./daterEnv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
In the terminal now we can run migrations:
python manage.py makemigrations
python manage.py migrate
-
Now we need to make migrations for the app itself and the models within it
python manage.py makemigrations daterapp
python manage.py migrate
-
in your terminal it is time to load fixtures:
python manage.py loaddata */fixtures/*.json
-
Start the API server:
python manage.py runserver
-
Follow the steps on the front-end web app readme to view the web app in your browser
- Django
- Python
- SQLite
- Fixtures
- ORM & SQL queries
- Models
- API Endpoint Views