an auth express server boilerplate to kickstart your backend development.
$ git clone https://github.com/alok722/express-server-boilerplate-auth.git
$ 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 😊
Alok raj (alokr417@gmail.com)
- website: https://alokraj.tech/
- github: @alok722
- linkedin: @alok722
- adding test-cases
- adding documentation
contributions, issues and feature requests are welcome!
feel free to check issues page. you can also take a look at the contributing guide.
give a ⭐️ if this project helped you!