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.
https://online-voting-platform-i9pc.onrender.com/
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
To run tests, run the following command
npm run test
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