Store Manager is an app that allows users to control sales and inventory. The store manager app has two type of users store attendant and store owner(admin). Each of the two users have their indivindual roles to play but in this case what the store attendant can do the admin can also do.
- clone this repository
- Navigate to the project directory
- Activate the virtual environment
$ source .env
- Install dependencies needed for the project to run
$ pip install -r requirements.txt
- install flask
$ pip install flask
- Run the application
$flask run
- To test the test
$ pytest
- Login to the app
- View all products
- View a single product
- Make a sale
- View a personal sales record
- Login to the app
- register a new user
- add a product to inventory
- view sales record
- view a specific sales record with respect to te user who made the sale
- post-register user http://127.0.0.1:5000/api/v2/signup
- post-login user http://127.0.0.1:5000/api/v2/login
- post-create products http://127.0.0.1:5000/api/v2/products
- post-create sale record http://127.0.0.1:5000/api/v2/sales
- get-fetch products http://127.0.0.1:5000/api/v2/products
- get-fetch single product http://127.0.0.1:5000/api/v2/products/product_id
- delete-delete single product http://127.0.0.1:5000/api/v2/products/product_id
The endpoints above can be tested using Postman.