Backend Engineer Assessment for Enter Scale developed with django and Django Rest-framework
Technologies used:
- Python
- Django
- Django Rest-Framework
- SQLite
- Celery
- Redis
- Docker
A dummy Admin have been created with the following details:
email: [email protected]
password: [email protected]
The following are the needed environment variables that should be added to an .env file: PAYSTACK_SECRET_KEY EMAIL_HOST_USER EMAIL_HOST_PASSWORD
- Install docker
- Run
docker compose build
- Run
docker compose up
- To stop the server, run
docker compose down
The auth token can be passed through the Authorization field in the request headers, in this format:
- Bearer XXXXXX
There are 3 Swagger Pages for the API documentation
-
Core Operations (Auth and Admin endpoints): http://127.0.0.1:8000/docs/core/
- All endpoints here, except the auth endpoints, are protected
-
Vendor Operations: http://127.0.0.1:8000/docs/vendor/
- All vendor endpoints are protected
-
Customer Operations: http://127.0.0.1:8000/docs/customer/
- All endpoints here are open
Below are two Images that depict the system design flow