the
restfulapi-pointofsale
is an Application for Point os Sale App
- Node js v12.10.0
- Npm / Yarn package
- Mysql Database
Clone
$ git clone https://github.com/RianKhanafi/restfulapi-pointofsale.git
$ cd restfulapi-pointofsale
SERVER_PORT = YOUR PORT
DB_HOST= YOUR DATABASE HOST NAME
DB_USER= YOUR DATABASE USERNAME
DB_PASS= YOUR DATABASE PASSWORD
DB_NAME= YOUR SECRET KEY
$ npm start
- get all data products
- Cread products
- Read products
- Update products
- Delete products
- pagination
- Sort products by name, date and category
- search product by name
- Add/Reduce products
- Allow CORS
- login and register with jsonwebtoken(JWT)
- Reduce
- Redis
- Recent Order
- chart recent order
- Income Today
- Growth income
- Order Today
- Growth Order
- Income this year
- Growth Income Year
- Categories
categories
to get data category/categories/:id
to delete data category
- products
/products
to get data products as search paginate category/products/paginate
to running pagination on products page/products/:id
to delete data products/products/reduce
to reduce products
You can also look in the
src / Route folder and select the route you want
POST
post dataGET
get dataPUT
update dataPATCH
update data