an auth express server boilerplate to kickstart your backend development.
$ git clone `URL`
$ npm i
$ npm run start:dev
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 😊
open devs (open.devs.github@gmail.com)
- website: https://opendevs.in/
- github: @open-devs
- core members: @alok722, @mikr13
give a ⭐️ if this project helped you!