This is the backend of a User Authentication System built using Node.js and Express.js. It handles user registration, login, and database operations.
- User Registration API
- User Login API
- Database Integration
- Request Validation
- RESTful API Design
- Node.js
- Express.js
- MySQL / MongoDB
- JavaScript (ES6+)
├── routes/
├── controllers/
├── models/
├── config/
├── server.js
- Clone the repository:
git clone https://github.com/codewithdevisri/User-auth--Backnd.git
- Navigate to project folder:
cd User-auth--Backnd
- Install dependencies:
npm install
- Start the server:
node server.js
POST /register
POST /login
Configure your database connection in:
config/db.js
- Password Hashing (bcrypt)
- JWT Authentication
- Error Handling Middleware
- Environment Variables (.env)
Devi Sri