The u-develop-it is a web application built with Express.js that allows users to participate in polls and vote on different topics. It utilizes Jest for testing and MySQL2 for storing voting data.
The U-develop-it provides a platform for creating and participating in polls. Users can vote on different topics, view poll results, and create their own polls.
- Create and manage polls.
- Vote on different partys.
- View real-time poll results.
- Jest for testing.
- Node.js installed
- npm package manager
- MySQL installed
-
Clone the repository
git clone https://github.com/jay1195/u-develop-it.git
npm install
- Create a MySQL database.
- Update the database configuration in config.js with your MySQL credentials.
-
Open a terminal and navigate to the project directory.
-
Run the server
node server.js
-
Access the application at http://localhost:3000 in your web browser.
-
Create and participate in polls.
- GET /polls: Retrieve a list of all polls.
- GET /polls/:id: Retrieve information about a specific poll.
- POST /polls: Create a new poll.
- PUT /polls/:id/vote: Vote on a specific poll option.
-
Node.js
-
Express.js
-
MySQL2
-
Jest for testing
-
Running Tests
npm test
Run tests to ensure the integrity of the code.
- Contributions are welcome! Feel free to open issues or submit pull requests.