Skip to content

Latest commit

 

History

History
78 lines (47 loc) · 1.28 KB

README.md

File metadata and controls

78 lines (47 loc) · 1.28 KB

Online-Voting-Platform

This is an online voting platform porject build using NodeJs, Express for Backend and ejs and Tailwind CSS for front-end. Voter admins can sign up and create new elections, add in questions, short description and answer options to vote on. Admins can then register register voters and launch the election where voters can login and vote. Once election ends results are served on the public page of election.

Demo

https://online-voting-platform-i9pc.onrender.com/

Screenshots

App Screenshot
App Screenshot

Run Locally

Clone the project

  git clone https://github.com/thedevildude/wd-online-voting.git

Go to the project directory

  cd wd-online-voting

Install dependencies

  npm install

Create the database

  npx sequelize-cli db:migrate

Start the server

  npm start

Running Tests

To run tests, run the following command

  npm run test

Deployment

To deploy this project run. (Make sure you have PostgreSQL installed)

  npm install
  npm run start:prod

Once the server has started please visit /sync route to sync the database

Authors