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.
Index | User Dashboard | Admin Dashboard
https://newstoremanager.herokuapp.com/
- Postman
- Any web browser
- Node js/express
- Any text editor
- Git
- Clone this repository into your local machine:
e.g git clone https://github.com/ebenezerdon/Store-Manager
- Install dependencies
- npm install.
- Start the application by running the start script.
- npm start
- Install postman to test all endpoints on port 5001.
run test using 'npm test'.
- 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 attendant can add product to buyer's cart.
- Store attendant can search for products by id.
- Store attendant/admin can see available products.
- Store owner can see sales and can get sale record by id.
HTTP VERB | ENDPOINT | FUNCTIONALITY |
---|---|---|
POST | /api/v1/login/ | User login |
POST | /api/v1/sales | Create a sale record (Only store attendant) |
POST | /api/v1/users | Create a user (Only admin) |
GET | /api/v1/sales | Get all sale records (Only admin) |
GET | /api/v1/sales/:id | Get a sale record by id (Onlyadmin) |
GET | /api/v1/products | Gets all products |
GET | /api/v1/products/:id | Gets a product by id |
GET | /api/v1/users | Gets all users |
GET | /api/v1/users/:id/ | Gets a user by id |
- Ebenezer Don
ISC
- Andela