Giter Club home page Giter Club logo

votingapp-nodejs-'s Introduction

Voting Application

This is a backend application for a voting system where users can vote for candidates. It provides functionalities for user authentication, candidate management, and voting.

Features

  • User sign up and login with Aadhar Card Number and password
  • User can view the list of candidates
  • User can vote for a candidate (only once)
  • Admin can manage candidates (add, update, delete)
  • Admin cannot vote

Technologies Used

  • Node.js
  • Express.js
  • MongoDB
  • JSON Web Tokens (JWT) for authentication

Installation

  1. Clone the repository:

    git clone https://github.com/SaurabhJagdambe/VotingApp-NodeJs-.git
    
    

API Endpoints

Authentication

Sign Up

  • POST /signup: Sign up a user

Login

  • POST /login: Login a user

Candidates

Get Candidates

  • GET /candidates: Get the list of candidates

Add Candidate

  • POST /candidates: Add a new candidate (Admin only)

Update Candidate

  • PUT /candidates/:id: Update a candidate by ID (Admin only)

Delete Candidate

  • DELETE /candidates/:id: Delete a candidate by ID (Admin only)

Voting

Get Vote Count

  • GET /candidates/vote/count: Get the count of votes for each candidate

Vote for Candidate

  • POST /candidates/vote/:id: Vote for a candidate (User only)

User Profile

Get Profile

  • GET /users/profile: Get user profile information

Change Password

  • PUT /users/profile/password: Change user password

votingapp-nodejs-'s People

Contributors

saurabhjagdambe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.