-
go to the backend directory
cd Back-end -
From
/Syncincfolder, copy the.env.examplefile and rename it to.env -
Fill in the required fields in the
.envfile- For using sqlite3, set the following environment variables as follows:
SERVER=LOCAL LOCAL_DATABASE_ENGINE="django.db.backends.sqlite3" LOCAL_DATABASE_NAME="db.sqlite3"
- For using sqlite3, set the following environment variables as follows:
-
Use
venvorcondato create a virtual environment. Forvenv, run the following commands:python -m venv env source env/bin/activate -
install dependencies in the virtual environment
pip install --upgrade pip pip install -r requirements.txt
Warning
If you face any problem installing psycopg2, remove it from the requirements.txt file and install psycopg2-binary manually instead.
-
Migrate the database
python manage.py makemigrations accounts python manage.py makemigrations project_api python manage.py migrate accounts python manage.py migrate project_api python manage.py migrate -
run the server
python manage.py runserver
- go to the project directory
cd Front-end/syncinc - install dependencies
npm install
- run the server
npm start