Skip to content

timotismjntk/express-backend

Repository files navigation

ExpressJS - Database Blanja

This is a simple Database Administrator application specially for backend only. Built with NodeJs using the ExpressJs Framework. Express.js is a web application framework for Node.js. More about Express

Built With

Express.js Node.js jsonwebtoken [![node.bcrypt.js][https://github.com/kelektiv/node.bcrypt.js#readme]

Requirements

  1. Node Js
  2. Node_modules
  3. Postman
  4. Web Server (ex. localhost)

How to run the app ?

  1. Open app's directory in CMD or Terminal
  2. Type npm install
  3. Make new file a called .env, set up first here
  4. Turn on Web Server and MySQL can using Third-party tool like xampp, etc.
  5. Open Postman desktop application or Chrome web app extension that has installed before
  6. Choose HTTP Method and enter request url.(ex. localhost:8080/)
  7. You can see all the end point here

End Point

express-backend

1. GET

  • /manage/product(Get All product)
  • /manage/product/:id(Get product by id)
  • /color/product(Get All color product)
  • /color/product/:id(Get color product by id)
  • /rating(Get All rating)
  • /rating/:id(Get rating by id)
  • /manage/category(Get All category)
  • /manage/category/:id(Get category by id)
  • /image/product(Get All image product)
  • /image/product/:id(Get image product by id)
  • /manage/user(Get User By role_id)

2. POST

  • /manage/product(Get All product)
  • /color/product(Get All color product)
  • /rating(Get All rating)
  • /manage/category(Get All category)
  • /image/product(Get All image product)
  • /manage/user(Get User By role_id)

3. PUT

  • /manage/product/:id(Get product by id)
  • /color/product/:id(Get color product by id)
  • /rating/:id(Get rating by id)
  • /manage/category/:id(Get category by id)
  • /image/product/:id(Get image product by id)

4. PATCH

  • /manage/product/:id(Get product by id)
  • /color/product/:id(Get color product by id)
  • /rating/:id(Get rating by id)
  • /manage/category/:id(Get category by id)
  • /image/product/:id(Get image product by id)

5. DELETE

  • /manage/product/:id(Get product by id)
  • /color/product/:id(Get color product by id)
  • /rating/:id(Get rating by id)
  • /manage/category/:id(Get category by id)
  • /image/product/:id(Get image product by id)

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published