A web application that helps store owners manage sales and product inventory records. Store owners/managers can create store attendant accounts who would be in charge of selling of items in the store.
Link to template: Store Manager Template
Link to API: Store Manager API
- Clone Repository
git clone https://github.com/Easybuoy/storemanager
- Change Directory To Store Manager
cd storemanager
- Install Dependencies
npm install
- Start Application
npm run start
- Run Test
npm run test
- Run Coverage Report
npm run coveralls
git clone https://github.com/Easybuoy/storemanager
cd storemanager
npm install
npm run start
npm run test
npm run coveralls
DESCRIPTION | HTTP METHOD | ROUTES | ACCESS |
---|---|---|---|
Register User | POST | /api/v1/auth/signup | PRIVATE |
Login User | POST | /api/v1/auth/login | PUBLIC |
Make Store Attendant an Admin | POST | /api/v1/auth/makeadmin | PRIVATE |
Get Current User Details | GET | /api/v1/auth/current | PRIVATE |
Get All Store Attendants | GET | /api/v1/auth/attendants | PRIVATE |
Delete A Store Attendant | DELETE | /api/v1/auth/attendant/{id} | PRIVATE |
Get User By Id | GET | /api/v1/auth/{id} | PRIVATE |
Create New Product | POST | /api/v1/products | PRIVATE |
Get All Products | GET | /api/v1/products | PRIVATE |
Get Single Product Detail | GET | /api/v1/products/{id} | PRIVATE |
Update Single Product Detail | PUT | /api/v1/products/{id} | PRIVATE |
Delete Single Product Detail | DELETE | /api/v1/products/{id} | PRIVATE |
Assign Product To Category | PUT | /api/v1/products/{id}/{categoryId} | PRIVATE |
Create New Sale | POST | /api/v1/sales | PRIVATE |
Get All Sales | GET | /api/v1/sales | PRIVATE |
Get Single Sale Detail | GET | /api/v1/sales/{id} | PRIVATE |
Make a new Category | POST | /api/v1/categories/ | PRIVATE |
Get All Categories | GET | /api/v1/categories/ | PRIVATE |
Update a Category | PUT | /api/v1/categories/{id} | PRIVATE |
Delete a Category | DELETE | /api/v1/categories/{id} | PRIVATE |
Get a Category By Id | GET | /api/v1/categories/{id} | PRIVATE |