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.
Application Features
- 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.
As a store attendant:
- Store attendant can search and add products to buyer’s cart.
- Store attendant can see his/her sale records but can’t modify them.
As Store Owner:
- Store owner can see sales and can filter by attendants
- Store owner can add, modify and delete products
Use the following endpoints to perform the specified tasks
EndPoint | Functionality
------------------------ | ----------------------
Get /products/ | Fetch all products
Get /products/<product_id> | Fetch specific product
POST /products/ | Create a product
GET /sales/ | Retrieves all sales records
GET /sales/<sales_id> | Retrieve a specific sales record
POST /sales/ | Create a sales record
Getting started with the app
Technologies used to build the application
Create a new directory and initialize git in it. Clone this repository by running
$ git clone https://github.com/BagzieGracious/Store-Manager-Api-.gitCreate a virtual environment. For example, with virtualenv, create a virtual environment named venv using
$ virtualenv venvActivate the virtual environment
$ cd venv/scripts/activate.batInstall the dependencies in the requirements.txt file using pip
$ pip install -r requirements.txtStart the application by running
$ python run.pyTest your setup using a client app like postman