Store Manager is a web application that helps store owners manage sales and product inventory records. This application is meant for use in a single store.
The API is hosted here
The UI is hosted here
-Python3 (A programming language).
-Flask (A Python microframework).
-PostgreSQL (Database)
-Virtualenv (Stores all dependencies used in the project)
-Pivotal Tracker (A project management tool)
-Pytest (Framework for testing)
-Store attendant can search and add products to buyer’s cart.
-Store attendant can see his/her sale records but can’t modify them.
-App should show available products, quantity and price.
-Store owner can see sales and can filter by attendants.
-Store owner can add, modify and delete products.
-Store owner can give admin rights to a store attendant.
-Products should have categories.
-Store attendants should be able to add products to specific catego
Clone this Repository.
$ git clone https://github.com/Deekerubo/Store-Manager-API.git
Create the virtual Environment
$ virtualenv venv
Activate the virtual environment
$ . venv/bin/activate
Install all the requirements
$ pip install -r requirements.txt
View all Endpoints hosted on Heroku:
https://storemanger2-api.herokuapp.com/
Run my version 2 testS
`python -m pytest --cov=app/tests/v2'
#Endpoints
EndPoint | Functionality | Notes |
---|---|---|
POST /products | Create a product | |
GET /products | Fetch all products | |
GET /products/ | Fetch a single product record | |
PUT /products | Modify a Product | |
DELETE /products | Delete a product | |
GET /sales | Fetch all sale records | |
GET /sales/ | Fetch a single sale record | |
POST /sales | Create a sale order | |
PUT /sales | Modify a sale | |
DELETE /sales | Delete a sale |
export ENV="development" export ENV='testing'
python -m pytest --cov=app/api/v2
pytest --cov-report term-missing --cov=app/api/v2