Store Manager is a web application that helps store owners manage sales and product inventory. This application is meant for use in a single store.
- This application should help store owners avoid selling products that have run out of stock.
- The store owner is also referred to as the admin of the application.
- Link to Hosted App
- Link to Pivotal Tracker
- Tech Stack Used
- Application Features
- How To Use
- Author
- License
- UI templates are hosted on Github pages visit here
- Admin can add a product
- Admin can update a product
- Admin can delete a product
- Admin can add a store attendant
- Admin can update a store attendant/give admin privilege
- Admin can delete a store attendant
- Admin/store attendant can get all products
- Admin/store attendant can get a specific product
- Admin/store attendant can search a specific product
- Store attendant can add sale orders
- Store/Admin attendant can add product to a category
- Admin can get all sale order records
- Store attendant can view owned records
- Store Attendant/Admin can view owned single sales records
- Admin can add a category
- Admin can update a category
- Admin can delete a category
- Admin/store attendant can get all categories
- Admin/store attendant can get a specific category
- Admin/store attendant can login
- Store attendant can get personal detail
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/julietezekwe/Store_Manager_develop
# Go into the repository
$ cd store_Manager_develop
# Install dependencies
$ npm install
# Create .env file for environmental variables in your root directory like the .env.example file
# Run the app
$ npm start
##USERS
POST Request -> localhost:8000/api/v1/auth/createUser
POST Request -> localhost:8000/api/v1/auth/login
GET Request -> localhost:8000/api/v1/auth/:userId
GET Request -> localhost:8000/api/v1/auth/users
PUT Request -> localhost:8000/api/v1/auth/:userId
DELETE Request -> localhost:8000/api/v1/auth/:userId
##PRODUCTS
POST Request -> localhost:8000/api/v1/products
GET Request -> localhost:8000/api/v1/products
GET Request -> localhost:8000/api/v1/products/:productId
GET Request -< localhost:8000/api/V1/products/:searchString/search
PUT Request -> localhost:8000/api/v1/products/:productId
PUT Request -> localhost:8000/api/v1/products/:productId/category
DELETE Request -> localhost:8000/api/v1/products/:productId
##SALES
POST Request -> localhost:8000/api/v1/sales
GET Request -> localhost:8000/api/v1/sales
GET Request -> localhost:8000/api/v1/sales/:saleId
GET Request -> localhost:8000/api/v1/user/sales
##CATEGORIES
POST Request -> localhost:8000/api/v1/categories
GET Request -> localhost:8000/api/v1/categories
GET Request -> localhost:8000/api/v1/categories/:categoryId
PUT Request -> localhost:8000/api/v1/categories/:categoryId
DELETE Request -> localhost:8000/api/v1/categories/:categoryId
- To run tests, navigate to the project's root directory
- After installation, run
npm run test
Chidimma Juliet Ezekwe
ISC