Vendor Management System using Django and Django REST Framework. This system will handle vendor profiles, track purchase orders, and calculate vendor performance metrics.
How to Setup Repo:
- Clone this repo & cd Vendor-Management-System
- Create Virtualenv and activate
- Install all the required libraries using ->
pip install -r requirements.txt - Run command 'python manage.py makemigrations'
- Run command 'python manage.py migrate'
- Run command 'python manage.py runserver', and your django application will start working
To use the Database you need to create a superuser follow to below steps
- cd Vendor-Management-System
- Use the command 'python manage.py createsuperuser' to create a super user
- Promt will be generated for asking user details like, user, email, password
- Provide all the details and save the password
- hit the api http://127.0.0.1:8000/admin
- Try to login using the creds you created for super user
Test Suites
- Export the variable like this :
export DJANGO_SETTINGS_MODULE=vendormanagement.settings - cd Vendor-Management-System/vendorapp
- Run command 'pytest tests.py'
The api documentation for the same is published here:
https://documenter.getpostman.com/view/14536159/2sA3JM8N2H
Attaching the postman collection for the reference