A Django backend for a inventory mananagement that manages users, products, orders and reports. It supports basic CRUD (Create, Read, Update, Delete) operations for all services.
** Redis for catching ** Kafka for sending stream of orders ** Introduce email engine for notifications
- Endpoints for managing users authentication and authorization with RBAC
- Endpoints for products where only admin can make full CRUD operations
- Basic error handling
- Normal users can create orders with list of products
- Reporting endpoints for sales and products stock management
[SQLDesign](https://drawsql.app/teams/peaknews/diagrams/drugstoc-inventory)
- Python 3.7+ install
- Make install
-
Clone the repository:
git clone https://github.com/Horlawhyumy-dev/drugstoc_inventory.git cd drugstoc_inventory
-
Create Virtual Environment and Install Requirements
python3 -m venv env source env/bin/activate # On Windows use `env\Scripts\activate` make install
-
Run Migrations
make migrate
-
Run and Execute Tests Script
##Make the script executable by chmod +x run_tests.sh ./run_tests.sh
-
Start Server
make runserver
-
Create Super User
make createsuperuser
```
./api_doc.txt file
```