A full-stack MERN Voting System project built to practice real-world authentication, backend APIs, database integration, and voting logic.
This project demonstrates a complete MERN workflow including:
- Backend API development with Node.js + Express
- MongoDB database integration
- Frontend UI built with React
- Voting system logic (create, vote, results)
- Frontend: React, JavaScript
- Backend: Node.js, Express.js
- Database: MongoDB
- Tools: Git, Postman
- User authentication (if implemented)
- Create voting polls (if implemented)
- Vote for candidates/options
- View results (if implemented)
- Backend REST APIs
git clone https://github.com/HardikPatil0/Voting-System.git
cd Voting-System
## Install dependencies
This project may contain separate frontend and backend folders.
If your project has client/ and server/ folders, use:
cd server
npm install
Open a new terminal:
cd client
npm install
## Environment Variables
Create a .env file inside the backend folder (example: server/.env):
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key
4) Run the project
Backend:
npm start
Frontend:
npm run dev
## 📌 Notes
Deployment is not added yet (local setup only).
This project will be improved with better documentation and deployment in future updates.