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.
- To start get started;
- Login
- Create an attendant's account
- Fetch all products
- Fetch a single product record
- Fetch all sale records
- Fetch a single sale record
- Create a product
- Create a sale order
- Update a prooduct item
- Delete a product item
HTTP Method | End point | Public Access | Action |
---|---|---|---|
POST | /api/v1/auth/signup | False | Create an attendant's account |
POST | /api/v1/auth/login | True | Login a user |
HTTP Method | End point | Public Access | Action |
---|---|---|---|
POST | /api/v1/products | False | Create a product |
POST | /api/v1/sales | False | Create a sale order |
GET | /api/v1/products | False | Fetch all available products |
GET | /api/v1/products/<product_id> | False | Fetch details of a single product |
DELETE | /api/v1/products/<product_id> | False | Delete a single product |
PUT | /api/v1/products/<product_id> | False | Edit details of a single product |
GET | /api/v1/sales/<sale_id> | False | Fetch details of a single sale record |
GET | /api/v1/sales | False | Fetch all sale records created |
Create a new directory and initialize git in it. Clone this repository by running
$ git clone https://github.com/nadralia/Store_Manger_db
Create a virtual environment. For example, with virtualenv, create a virtual environment named venv using
$ virtualenv venv
Activate the virtual environment
$ cd venv/scripts/activate
Install the dependencies in the requirements.txt file using pip
$ pip install -r requirements.txt
Start the application by running
$ python run.py
Test your setup using postman REST-client
- To run the test run
nosetests --with-cov --cov tests/
in a command line interface
- Python 3
- Flask
- PostgreSQL
- Adralia Nelson