This is a bad written coding app with express, nodejs and pm2
Install my project with npm
git clone https://github.com/StoppedwummSites/votingappbad.git
cd votingappbad
npm install
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
localhost:8080/poll/voteid=1
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
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))
https://pm2.keymetrics.io/, https://expressjs.com/ and https://www.digitalocean.com/ tutorials for express
README.md Editor: https://readme.so