-
Clone or download this repo.
-
Activate the virtual environment on Linux :
python3 -m venv env
-
or delete the env folder and Create your virtual environment on Linux:
python3 -m venv env
and activate itsource env/bin/activate
-
Install requirements in the virtualenv:
pip install -r requirements.txt
- Create database with name yourdatabasename and replace it on settings.py with you db username and password:
you should use db as HOST in settings.py else 127.0.0.1:
- Make Django database migrations:
python3 manage.py makemigrations
then:python3 manage.py migrate
-
Create an admin user:
python3 manage.py createsuperuser
-
Run the project locally:
python manage.py runserver
-
Navigate to admin dashboard:
http://localhost:8000/admin/
-
Navigate to api docs :
http://localhost:8000/api/v1/docs