Skip to content

kubra16/Live-polling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Polling

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.

Technologies Used

  • Node.js
  • Express.js
  • MongoDB (with Mongoose)
  • Socket.IO
  • CORS

Prerequisites

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)

Getting Started

Follow these steps to run the backend application locally:

Backend setup

  1. Clone the repository for backend:

    git clone https://github.com/kubra16/live-polling-server.git
    cd live-polling-server
  2. install dependencies:

   npm install
  1. Setup environment variables :

    • Create a .env file in the root directory and paste your credentials.
    MONGO_URL:<your_mongo_url>
  1. Start the server :
    npm start

Frontend setup :

  1. clone the frontend respository
 git clone https://github.com/kubra16/Live-polling.git
 cd Live-polling
  1. install dependencies:
   npm install
  1. Setup environment vaiables:
  • Create a .env file in the root directory and paste this command.
 REACT_APP_API_URL=http://localhost:5000
  1. Start the React app :
    npm start