Live polling is a dynamic method of gathering instant feedback or opinions from participants in real-time during an event, class, or meeting. It allows users to submit responses to questions or prompts immediately, providing instant insights and engagement.
- Node.js
- Express.js
- MongoDB (with Mongoose)
- Socket.IO
- CORS
Before running this application, ensure you have the following installed:
- Node.js (v12 or higher)
- MongoDB (running locally or accessible MongoDB URI)
- npm or yarn (package managers)
Follow these steps to run the backend application locally:
-
Clone the repository for backend:
git clone https://github.com/kubra16/live-polling-server.git cd live-polling-server
-
install dependencies:
npm install
-
Setup environment variables :
- Create a .env file in the root directory and paste your credentials.
MONGO_URL:<your_mongo_url>
- Start the server :
npm start
- server will run on http://localhost:5000
- clone the frontend respository
git clone https://github.com/kubra16/Live-polling.git
cd Live-polling
- install dependencies:
npm install
- Setup environment vaiables:
- Create a .env file in the root directory and paste this command.
REACT_APP_API_URL=http://localhost:5000
- Start the React app :
npm start
- App will run on http://localhost:3000