Skip to content

StoppedwummSites/votingappbad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A bad Web voting app

This is a bad written coding app with express, nodejs and pm2

Installation

Install my project with npm

  git clone https://github.com/StoppedwummSites/votingappbad.git
  cd votingappbad
  npm install

Deployment

To deploy this project run

  npm run test

This will start the app on localhost:8080

For professional Deployment run

  npm run deploy

To stop the app (started with test) press CTRL + C

To stop the app (started with deploy) simply run

  pm2 stop all

FAQ

Where is the example vote?

localhost:8080/poll/voteid=1

Where are the results for the example vote?

localhost:8080/poll/getresults?voteid=1

If you want to reset on the fly, please use this url: localhost:8080/poll/getresults?voteid=1&r=1

How do I make my own poll

Have fun doing that (You have to change index.js and add a new HTML file in /poll/1.html (or just change the options in /poll/1.html))

Acknowledgements

https://pm2.keymetrics.io/, https://expressjs.com/ and https://www.digitalocean.com/ tutorials for express

README.md Editor: https://readme.so

Releases

No releases published

Packages

No packages published