The E-voting API is a web-based application that allows users to cast their votes in an online voting system. This API is built using Node.js, Express, and MongoDB.
To install and run the E-voting API, follow these steps:
- Clone the repository:
- Navigate to the project directory:
- Install the dependencies:
- Set up the MongoDB database:
- Install MongoDB on your local machine or use a cloud-based MongoDB service.
- Create a new database and name it "e-voting".
- Create a new user and set up the necessary permissions for the "e-voting" database.
- Update the
.env
file with your MongoDB connection string and user credentials.
- Start the server:
Find the api documentation here.