as this project consists of two parts: CLIENT (frontend) and SERVER (backend), you need to be able to run both in order to test / develop properly.
you need
-
.env
file in your root directory of the project, containing secret keys for the server instance. Consult one of the team members for the content of the file. Not included in the repo as it is in fact secret. -
Swap out
db.sqlite3
file in theserver
directory with file containing useful dummy data. Though this is not necessary, you may find it helpful to test your code. Again, consult one of the team members for the file.
# in this project's root directory
# install and source virtual environment
pip3 install virtualenv
virtualenv myenv
# TROUBLESHOOT (mac):
# if you see virtualenv command not fount error, try:
# python3 -m virtualenv myenv
# may not be the best way to solve this, but found it working
source myenv/bin/activate
# install django
pip3 install django
# install packages
pip3 install -r requirements.txt
# now cd into the server directory
cd server
# migrate db
python manage.py makemigrations
python manage.py migrate
# run server
python manage.py runserver
you should now see the server running on your terminal. Follow the next step on another terminal instance.
# make sure you're in the client directory
# install packages
npm install
npm start
you are now good to develop away :)