Skip to content

RianKhanafi/restfulapi-pointofsale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About the POINT OF SALE EXPRESS

the restfulapi-pointofsale is an Application for Point os Sale App

images


Requirments

Instalation

Clone

$ git clone  https://github.com/RianKhanafi/restfulapi-pointofsale.git
$ cd restfulapi-pointofsale

Setup .env

  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

Start Api

  $ npm start

features

  • 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

Route

  • 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

Method

  • POST post data
  • GET get data
  • PUT update data
  • PATCH update data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published