GraphQL api to send data to the frontend of the webapp
These instructions are aimed for users of all OS, but if it lacks something or you are stuck in some step, refer this issue
Install the requirements
pip3 install requirements.txt
Set environment variables
For linux users
cp .bashrc.example .bashrc
And put appropriate values in .bashrc
file
source .bashrc
copy .bashrc.example .bashrc
And put appropriate values in .bashrc
file
Run shell inside the virtual environment
python3 manage.py shell
from dotenv import load_dotenv
load_dotenv('.bashrc')
Apply migrations
python3 manage.py migrate
Run the django server
python3 manage.py runserver