https://github.com/akshay-2396/node-day-5
User Authentication and Authorization API
https://github.com/akshay-2396/node-day-5
bcrypt expressjs jwt-authentication mongodb nodejs postman
Last synced: 2 months ago
JSON representation
User Authentication and Authorization API
- Host: GitHub
- URL: https://github.com/akshay-2396/node-day-5
- Owner: Akshay-2396
- Created: 2025-05-23T08:42:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-23T09:29:05.000Z (about 1 year ago)
- Last Synced: 2025-06-27T14:43:15.596Z (12 months ago)
- Topics: bcrypt, expressjs, jwt-authentication, mongodb, nodejs, postman
- Language: JavaScript
- Homepage: https://node-day-5-yivk.onrender.com
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ✔ User Authentication and Authorization API
A RESTful API for user registration, login, and authentication using Bearer tokens. Built with Node.js, Express.js, MongoDB (Mongoose), and JWT. The application follows the MVC architecture and includes API documentation using Postman.
# 🌐 API Endpoints
* Register a user – POST /api/auth/register
* Login a user – POST /api/auth/login
* Get user info – GET /api/auth/getuser
# 🛠 Tech Stack
* Node.js
* Express.js
* MongoDB + Mongoose
* JWT for authentication
* Postman for API testing and documentation
# ✅ Features
- User registration and login
- Password hashing with bcrypt
- JWT generation and verification
- Protected routes using middleware
- MVC architecture
- Error handling and validation
- Postman collection with API documentation
# 📕 API Documentation
All endpoints are documented and tested using Postman.
https://documenter.getpostman.com/view/44994885/2sB2qaj2Yi
# 🚀 Deployment
Deployed the API using:
**Render** :
https://node-day-5-yivk.onrender.com/
# ✍ Author
* *Akshay*