An open API service indexing awesome lists of open source software.

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

express server boilerplate codes to kickstart your backend dev with auth support.
https://github.com/alok722/express-server-boilerplate-auth

authentication authentication-backend authentication-middleware express-middleware expressjs hactoberfest hactoberfest-accepted hactoberfest2020 jwt-authentication jwt-token nodejs passport-jwt passport-local passportjs server

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

welcome to express-server-boilerplate with auth 👋



Version
Maintenance

Licence

> an *auth* [express](https://expressjs.com/) server boilerplate to kickstart your backend development.

## 🛠 usage

```sh
$ 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.

:zap: 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)**

* website: https://alokraj.tech/
* github: [@alok722](https://github.com/alok722)
* linkedin: [@alok722](https://linkedin.com/in/alok722)

## 🚀 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](https://github.com/alok722/express-server-boilerplate-auth/blob/main/CONTRIBUTING.md).

## 🙌 show your support

give a ⭐️ if this project helped you!

***