Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.49 KB

File metadata and controls

51 lines (34 loc) · 1.49 KB

welcome to express-server-boilerplate with auth 👋

Version Maintenance

an auth express server boilerplate to kickstart your backend development.

🛠 usage

$ git clone `URL`

$ npm i

$ npm run start:dev

❓ what is it

It is an express server boilerplate codes to kickstart your backend development with authentication support. It uses passport-jwt and passport as dependency.

⚡ API routes * /api/auth/register -- add User
* /api/auth/login -- authenticate user
* /api/product/read -- read all products *
* /api/product/read/:_id -- read product by id *
* /api/product/add -- add product *
* /api/product/update/:_id -- update product by id *
* /api/product/delete/:_id -- delete product by id *

** product api expects jwt token as Authorization Bearer header, you can get the token by making an api call to login after registration.

happy backend-deving 😊

🕺 Author

open devs (open.devs.github@gmail.com)

🙌 show your support

give a ⭐️ if this project helped you!