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/v1/users
- post-login user http://127.0.0.1:5000/api/v1/login
- post-create products http://127.0.0.1:5000/api/v1/products
- post-create sale record http://127.0.0.1:5000/api/v1/sales
- get-fetch products http://127.0.0.1:5000/api/v1/products
- get-fetch single product http://127.0.0.1:5000/api/v1/products/product_id
- get-fetch sale records http://127.0.0.1:5000/api/v1/sales
- get-fetch single sale record http://127.0.0.1:5000/api/v1/sales/sale_id
- get-fetch user http://127.0.0.1:5000/api/v1/users
- get-fetch single user http://127.0.0.1:5000/api/v1/users/user_id
The endpoints above can be tested using Postman.
The tests have been automated through continousintergration in TravisCI.
.
The app has been hosted on Heroku https://andstore.herokuapp.com/