https://github.com/datodia/express-auth
express auth
https://github.com/datodia/express-auth
auth authentication express jwt jwt-token mongoose
Last synced: 2 months ago
JSON representation
express auth
- Host: GitHub
- URL: https://github.com/datodia/express-auth
- Owner: Datodia
- Created: 2025-01-07T12:43:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-07T13:00:20.000Z (over 1 year ago)
- Last Synced: 2025-01-29T14:18:45.963Z (over 1 year ago)
- Topics: auth, authentication, express, jwt, jwt-token, mongoose
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Auth with express
This is simple way how to implement JWT Token based auth using express, mongoose and JWT.
There are following endpoints:
/auth/sign-up **POST** \
/auth/sign-in **POST**
/users **GET** \
/users/id **GET** \
/users/id **DELETE** 🔒 \
/users/id **PUT** 🔒
/posts **GET** 🔒 \
/posts **POST** 🔒 \
/posts/id **GET** 🔒 \
/posts/id **DELETE** 🔒 \
/posts/id **PUT** 🔒
each user have its own posts, therefor each post have one user who created this post.
## How to start a project
1) git clone https://github.com/Datodia/express-auth.git
2) npm i
3) add your .env files
4) npm run start