Skip to content

express server boilerplate codes to kickstart your backend dev with auth support.

License

Notifications You must be signed in to change notification settings

alok722/express-server-boilerplate-auth

Repository files navigation

welcome to express-server-boilerplate with auth 👋

Version Maintenance Licence

an auth express server boilerplate to kickstart your backend development.

🛠 usage

$ git clone https://github.com/alok722/express-server-boilerplate-auth.git

$ 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

Alok raj (alokr417@gmail.com)

🚀 future scope

  • adding test-cases
  • adding documentation

🤝 contributing

contributions, issues and feature requests are welcome!
feel free to check issues page. you can also take a look at the contributing guide.

🙌 show your support

give a ⭐️ if this project helped you!