python manage.py createsuperuser to create a superuser (the
sqlite database is in the .gitignore file so this will need to
be done each time. Good security practice!
python manage.py runserver to start the API server on
localhost:8000
Then enter the frontend folder and do the following:
npm install to install dependencies
npm run start to start the node server on localhost:3000.
The node server is running a react app, that when the test button is
pressed should communicate with the Django API app to fetch the data
using the django rest api library.
To run:
pipenv shell
to enter the virtual environment.pipenv install
to install dependenciespython manage.py createsuperuser
to create a superuser (the sqlite database is in the.gitignore
file so this will need to be done each time. Good security practice!python manage.py runserver
to start the API server onlocalhost:8000
frontend
folder and do the following:npm install
to install dependenciesnpm run start
to start the node server onlocalhost:3000
.The node server is running a react app, that when the test button is pressed should communicate with the Django API app to fetch the data using the django rest api library.