Skip to content

AgarwalVaibhav-20/Voting-App

Repository files navigation

Home Page

Homepage

home2

home3

Dashboard

dashboard

#Help & Support help support

Admin Login

adminlogin

Voting Page

Voting

User Login

UserLogin

Profile

profile

Voting App

Table of Contents

Introduction

The Voting App is a simple web application that allows users to create polls, vote on different options, and view the results in real time. This application is designed to be easy to use, with a focus on providing a clean and intuitive user interface.

Features

  • Create new polls with multiple options.
  • Vote on existing polls.
  • View real-time voting results.
  • User authentication for creating and voting on polls.
  • Secure and responsive design.

Technologies Used

  • Frontend:

    • HTML, CSS, JavaScript
    • React.js (for the user interface)
    • Tailwind CSS (for styling)
  • Backend:

    • Node.js with Express.js (for the server)
    • MongoDB (for the database)
  • Authentication:

    • JWT (JSON Web Tokens)

Installation

Prerequisites

Make sure you have the following installed:

  • Node.js
  • npm (Node Package Manager)
  • MongoDB (local or cloud instance)

Steps

  1. Clone the repository: bash git clone https://github.com/yourusername/voting-app.git cd voting-app

  2. Install dependencies: bash npm install

  3. Set up environment variables:

    Create a .env file in the root directory and add the following:

    bash MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret

  4. Run the application: bash npm start

    The application will be available at http://localhost:3000.

Usage

  1. Sign up or log in to create a poll.
  2. Create a new poll by entering a question and possible answers.
  3. Share the poll link with others so they can vote.
  4. View the results of the poll in real time.

API Endpoints

Authentication

  • POST /api/auth/register: Register a new user.
  • POST /api/auth/login: Log in with an existing user.

Polls

  • GET /api/polls: Get all polls.
  • POST /api/polls: Create a new poll.
  • GET /api/polls/:id: Get a specific poll by ID.
  • POST /api/polls/:id/vote: Vote on a poll.

Contributing

Contributions are welcome! If you'd like to contribute, please fork the repository and create a pull request with your changes. Ensure your code follows the project's coding guidelines and standards.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Author

Vaibhav agarwal

Shivam Shukla

Contact

If you have any questions, suggestions, or feedback, feel free to reach out:


Feel free to modify the content to better suit your specific Voting App project!# Voting_App_Frontend

About

It is a voting app made with MERN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages