Skip to content

gargi411/fullstack-complaint-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

fullstack-complaint-app

🧾 Full-Stack Complaint Management System πŸ“˜ Project Overview

The Complaint Management System (CMS) is a full-stack web application that allows users to register complaints, track their status, and view responses in real time. It provides an efficient workflow for users, administrators, and service departments to communicate and resolve issues seamlessly.

The system is built using the MERN stack (MongoDB, Express.js, React/HTML/CSS frontend, Node.js backend) with RESTful APIs and secure authentication.

🧩 Tech Stack Layer Technology Frontend HTML, CSS, JavaScript Backend Node.js, Express.js Database MongoDB Atlas Authentication JWT (JSON Web Tokens) Tools Nodemon, dotenv, multer (for uploads), bcryptjs Hosting (optional) Render / Vercel / Netlify βš™οΈ Project Setup

  1. Clone the Repository git clone https://github.com/gargi411/fullstack-complaint-app.git cd fullstack-complaint-app

  2. Install Backend Dependencies cd backend npm install

  3. Create Environment File

Inside backend/.env, add your credentials:

PORT=5000 MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_secret_key

  1. Run the Backend Server npm run dev

Server will start on: http://localhost:5000

  1. Run the Frontend

Open a second terminal and run:

cd frontend npx http-server -c-1

Frontend will run on: http://127.0.0.1:8080

πŸ” Authentication Routes Method Endpoint Description POST /api/auth/signup Register a new user POST /api/auth/login Authenticate user & issue JWT GET /api/complaints Get complaints for logged-in user POST /api/complaints File a new complaint PUT /api/complaints/:id Update complaint status 🧠 Core Features

βœ… User registration and login with password encryption βœ… Secure JWT-based authentication βœ… Submit and track complaints in real time βœ… Upload supporting images/documents βœ… Admins can view and update complaint statuses βœ… Clean, responsive UI (light/dark mode supported)

πŸ—ƒοΈ Folder Structure fullstack-complaint-app/ β”‚ β”œβ”€β”€ backend/ β”‚ β”œβ”€β”€ server.js β”‚ β”œβ”€β”€ .env β”‚ β”œβ”€β”€ config/ β”‚ β”‚ └── db.js β”‚ β”œβ”€β”€ models/ β”‚ β”‚ └── User.js β”‚ β”œβ”€β”€ routes/ β”‚ β”‚ β”œβ”€β”€ auth.js β”‚ β”‚ └── complaints.js β”‚ β”œβ”€β”€ middleware/ β”‚ β”‚ └── authMiddleware.js β”‚ └── uploads/ β”‚ β”œβ”€β”€ frontend/ β”‚ β”œβ”€β”€ index.html β”‚ β”œβ”€β”€ login.html β”‚ β”œβ”€β”€ signup.html β”‚ β”œβ”€β”€ style.css β”‚ β”œβ”€β”€ script.js β”‚ └── map.png β”‚ └── README.md

πŸ“Έ Screenshots

Add screenshots here (once frontend is styled)

/frontend/screenshots/

Example:

Login Page Complaint Dashboard

πŸ“‘ API Testing

Use Postman or Thunder Client to test endpoints. Include header:

Authorization: Bearer <your_jwt_token>

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

Name: Gargi Balamwar GitHub: @gargi411

Institute: Symbiosis Institute of Technology, Nagpur Course: Introduction to Full Stack Development

⭐ Future Enhancements

Admin dashboard for analytics

SMS/Email complaint notifications

Complaint prioritization and AI-based categorization

Multi-language support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published