python3 -m venv virtualenv
source virtualenv/bin/activate
pip3 install -r requirements.txt
- Make a PostgreSQL database, set up the database name with user and password in
DevChallenge/settings.py
underDATABASES
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser # create a user
python3 manage.py runserver
Upload DevChallengeDocs.json
in Thunder Client's new Collection. For all APIs endpoint and body example.
/api/register
to create new user- Pass Authorization : Token <'user_token'> in header for APIs requiring user authentication
- Here <'user_token'> is Auth Token that can be generated by passing
username
andpassword
to/api/login
- Code formatting by Black