Sai-1411 / Voting

Achieve Optimal Performance Instantly. Harness the power of real-time voting to secure the best performance in any activity. With 100% genuine results delivered on the spot, Vote ensures unparalleled excellence.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Voting

  1. Platform: Begin on a Windows system.

  2. NodeJs Installation: Install NodeJs.

  3. Initialization: Navigate to the specific folder of the Voting project using Command Prompt and initialize the project by entering the command npm init -y. This command creates the package.json file in the Voting folder.

  4. Library Installation: Install necessary library files using the following commands in Command Prompt:

1. npm install express sqlite3 body-parser , 2. npm install cookie-parser

  1. Folder Structure: Maintain the following folder/files structure.

  2. Image Addition: Add an image of choice and update the names accordingly in both index.html and results.html files.

  3. Service Start: Launch the service by entering the command in Command Prompt:

node server.js

  1. Database Creation: The database votes.db will be automatically generated for the first time and will continue to update with subsequent service restarts.

  2. IDE: Utilize Visual Studio Code for optimal development and deployment of the Voting site on a webpage.

  3. Database Inspection: Install SQLite in Visual Studio Code to examine the votes.db file.

  4. Open any browser and enter the URL - http://localhost:3000

  5. To view the Results page enter the URL - http://localhost:3000/results

  6. To view the Results page in json format enter the URL - http://localhost:3000/resultsData

  7. To export the result page in excel enter the URL - http://localhost:3000/exportResults

By following these steps diligently, you can seamlessly set up the Voting webpage and ensure smooth functionality.

About

Achieve Optimal Performance Instantly. Harness the power of real-time voting to secure the best performance in any activity. With 100% genuine results delivered on the spot, Vote ensures unparalleled excellence.


Languages

Language:HTML 57.2%Language:JavaScript 42.8%