An API for an inventory management and re-order application
Clone the application, install requirements and run the local server
pip install -r requirements.txt
python manage.py runserver
To access the api:
127.0.0.1:8000/api/v1/
For documentation:
127.0.0.1:8000/api/v1/docs
Retailer
username: retailer
email: [email protected]
password: retailer
Warehouse attendant
username: attendant2
email: [email protected]
password: attendant2
To make a product sale, make a patch
request to the product endpoint , changing the product amount as needed.
To make a dispatch from the warehouse, make a similar update request to tehe reorder
endpoint changing the status of the reorder.
To contribute to this project, please fork the repository and make a pull request.
pre-commit install
Run against all files
pre-commit run --all-files
pytest
For development using django and articles around software engineering, please visit TheGreenCodes.