Skip to content

Mubeen-Channa/User-Registry-FullStack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

66 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” UserRegistry - Full-Stack Authentication System

A modern, secure user authentication and management platform built with the MERN stack, featuring aws cloud deployment.

User Registry Full Stack App


✨ Features

  • πŸ”’ Secure Authentication - JWT-based login/register with password strength validation
  • πŸ‘₯ User Management - Real-time user dashboard with search and filtering
  • πŸ“Έ Profile Images - Cloudinary integration with automatic compression
  • πŸŒ“ Dark Mode - Persistent theme preference across sessions
  • πŸ“± Responsive Design - Mobile-first approach with Tailwind CSS
  • πŸ” Advanced Filters - Search by name, email, department, and gender
  • ⚑ Fast & Scalable - Deployed on AWS EC2 and Vercel

πŸš€ Live Demo


πŸ› οΈ Tech Stack

Frontend

  • React - UI library
  • Vite - Build tool
  • Tailwind CSS - Styling
  • Framer - Animation
  • React Router - Navigation
  • Axios - HTTP client

Backend

  • Node.js - Runtime
  • Express.js - Web framework
  • MongoDB Atlas - Database
  • JWT - Authentication
  • Bcrypt - Password hashing
  • Cloudinary - Image storage

DevOps

  • AWS EC2 - Backend hosting
  • Vercel - Frontend hosting
  • PM2 - Process management
  • Nginx - Reverse proxy

πŸƒ Quick Start

Prerequisites

  • Node.js 18+
  • MongoDB Atlas account
  • Cloudinary account

Installation

  1. Clone the repository
git clone https://github.com/Mubeen-Channa/user-registry-fullstack.git
cd user-registry-fullstack
  1. Setup Backend
cd server
npm install

Create .env file:

PORT=8080
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret
EMAIL_USER=your_email
EMAIL_PASS=your_email_password

Start server:

npm run dev
  1. Setup Frontend
cd client
npm install

Create .env.development:

VITE_API_URL=http://localhost:8080

Start frontend:

npm run dev

Visit http://localhost:5173 πŸŽ‰


πŸ”‘ API Endpoints

Authentication

POST   /api/auth/register     # Register new user
POST   /api/auth/login        # Login user

Users

GET    /api/users/all         # Get all users
PUT    /api/users/profile-image  # Update profile image

🎨 Key Features Implementation

Image Upload with Compression

// Frontend compresses to 400x400, 70% quality
// Backend stores to Cloudinary CDN
// Result: 95% smaller database size

JWT Authentication

// Token includes: userId, email, role
// 7-day expiration
// Stored in localStorage

Protected Routes

// Checks authentication before allowing access
// Role-based access control (Male/Female)

πŸš€ Deployment

Backend (AWS EC2)

# SSH into EC2
ssh -i your-key.pem ubuntu@your-ip

# Clone & setup
git clone <repo>
cd server
npm install
pm2 start src/index.js

Frontend (Vercel)

# Connect GitHub repo to Vercel
# Set environment variables
# Deploy automatically on push

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is open source and available under the MIT License.


πŸ‘¨β€πŸ’» Author


πŸ™ Acknowledgments

  • MongoDB Atlas for database hosting
  • Cloudinary for image CDN
  • Vercel for frontend deployment
  • AWS for backend infrastructure

⭐ Star this repo if you found it helpful!

About

Full-stack user registry platform with secure authentication, profile management, real-time search/filtering, and cloud-based image storage. Built using MERN stack with modern UI and deployed on AWS EC2 (backend) and Vercel (frontend).

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors