You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A secure and scalable backend for a digital voting platform using Node.js, Express, and MongoDB. This system allows authenticated users to vote once, view real-time results, and enables admin users to manage the candidate list.
🔧 Tech Stack
Backend: Node.js, Express.js
Database: MongoDB (Mongoose)
Authentication: JWT (JSON Web Tokens)
Password Security: BcryptJS
📁 Folder Structure
/src/controllers → Logic of the Backend Workflow
/src/models → Mongoose schemas (User, Candidate)
/src/routes → Express routes (auth, vote, profile, admin)
/src/middleware → JWT auth & admin validation
.env → Secrets like Mongo URI, JWT secret
/src/server.js → Main server file
A secure and scalable backend for a digital voting platform using Node.js, Express, and MongoDB. This system allows authenticated users to vote once, view real-time results, and enables admin users to manage the candidate list.