Skip to content

codewithdevisri/User-auth--Backnd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Authentication Backend

📌 Overview

This is the backend of a User Authentication System built using Node.js and Express.js. It handles user registration, login, and database operations.


🚀 Features

  • User Registration API
  • User Login API
  • Database Integration
  • Request Validation
  • RESTful API Design

🛠️ Tech Stack

  • Node.js
  • Express.js
  • MySQL / MongoDB
  • JavaScript (ES6+)

📂 Project Structure

├── routes/
├── controllers/
├── models/
├── config/
├── server.js

⚙️ Installation & Setup

  1. Clone the repository:
git clone https://github.com/codewithdevisri/User-auth--Backnd.git
  1. Navigate to project folder:
cd User-auth--Backnd
  1. Install dependencies:
npm install
  1. Start the server:
node server.js

🔌 API Endpoints

Register User

POST /register

Login User

POST /login

🗄️ Database

Configure your database connection in:

config/db.js

🔐 Future Improvements

  • Password Hashing (bcrypt)
  • JWT Authentication
  • Error Handling Middleware
  • Environment Variables (.env)

👩‍💻 Author

Devi Sri


About

Node.js and Express-based backend for user authentication, providing secure login and registration APIs with database integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages