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.
- Host: GitHub
- URL: https://github.com/alok722/express-server-boilerplate-auth
- Owner: alok722
- License: mit
- Created: 2020-10-14T15:21:44.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-14T15:37:06.000Z (almost 5 years ago)
- Last Synced: 2025-01-03T14:45:48.896Z (9 months ago)
- Topics: authentication, authentication-backend, authentication-middleware, express-middleware, expressjs, hactoberfest, hactoberfest-accepted, hactoberfest2020, jwt-authentication, jwt-token, nodejs, passport-jwt, passport-local, passportjs, server
- Language: TypeScript
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
welcome to express-server-boilerplate with auth 👋
> 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!
***