{"id":21091151,"url":"https://github.com/manikmaity/livepoll","last_synced_at":"2026-04-12T03:33:26.470Z","repository":{"id":263008132,"uuid":"883799322","full_name":"ManikMaity/LivePoll","owner":"ManikMaity","description":"LivePoll is an interactive web application designed to simplify the process of creating, participating in, and managing polls. It combines user-friendly features with real-time updates to deliver a seamless polling experience📊.","archived":false,"fork":false,"pushed_at":"2024-11-15T14:40:56.000Z","size":1107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T01:13:28.482Z","etag":null,"topics":["authentication","chartjs","daisyui","expressjs","mongodb","nodejs","polling","react-toastify","reactjs","socket-io","swagger","voting","zustand"],"latest_commit_sha":null,"homepage":"https://live-poll-wine.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ManikMaity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-05T15:37:49.000Z","updated_at":"2024-11-15T14:41:00.000Z","dependencies_parsed_at":"2024-11-15T15:47:43.716Z","dependency_job_id":null,"html_url":"https://github.com/ManikMaity/LivePoll","commit_stats":null,"previous_names":["manikmaity/livepoll"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManikMaity%2FLivePoll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManikMaity%2FLivePoll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManikMaity%2FLivePoll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManikMaity%2FLivePoll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ManikMaity","download_url":"https://codeload.github.com/ManikMaity/LivePoll/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532786,"owners_count":20306209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","chartjs","daisyui","expressjs","mongodb","nodejs","polling","react-toastify","reactjs","socket-io","swagger","voting","zustand"],"created_at":"2024-11-19T21:43:47.050Z","updated_at":"2026-04-12T03:33:26.449Z","avatar_url":"https://github.com/ManikMaity.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg height=\"100px\" src=\"./images/imageGIF.gif\"/\u003e\n    \u003ch1\u003eLivePoll - Live Polling Platform\u003c/h1\u003e\n\u003c/div\u003e\n\nLivePoll is an interactive web application designed to simplify the process of creating, participating in, and managing polls. It combines user-friendly features with real-time updates to deliver a seamless polling experience📊.\n\n## Features\n\n- User can signup and login using his credentials, used cookie based authentication with jwt.\n- User can browse all the Polls created by other users in a pagination format and click on view to view the poll.\n- In poll view page user can vote on the poll and see the result of the poll live with chart using sockt.io.\n- User can bookmark the poll and see the bookmarked poll in bookmark page.\n- In user dashboard user can see the their details and manage their poll.\n- By clicking on the create poll button user can create a new poll and add options to the poll.\n- Used react-toastify for showing the error and success message.\n- Used chart.js and scocket.io-client for showing the poll result live in chart in poll view page.\n- Used daisyui and tailwind for styling the UI of the application for responsive design.\n\n## Links\n\n- [Live Website](https://livepoll.manikmaity.com/) - Loading time may take few seconds initially (free tier).\n- [Backend Routes Doc](https://livepoll-backend.manikmaity.com/docs/)\n\n## Preview Images\n\n### Home Page\n\n\u003cimg src=\"./images/Home.png\"/\u003e\n\n### Polls Page\n\n\u003cimg src=\"./images/pollsPage.png\"/\u003e\n\n### Login Page\n\n\u003cimg src=\"./images/Screenshot 2024-11-14 101710.png\"/\u003e\n\n### Signup Page\n\n\u003cimg src=\"./images/signup.png\"/\u003e\n\n### Poll Votting Page\n\n\u003cimg src=\"./images/votingPage.png\"/\u003e\n\n### Dashboard Page\n\n\u003cimg src=\"./images/dashboard.png\"/\u003e\n\n### Create Poll Page\n\n\u003cimg src=\"./images/createPollPage.png\"/\u003e\n\n### Bookmarks Page\n\n\u003cimg src=\"./images/bookmark.png\"/\u003e\n\n## Tech Stack\n\n### Frontend\n\nFramework \u0026 Routing: `ReactJS`, `React Router`  \nState Management: `Zustand`, `React Query`  \nReal-Time \u0026 Charts: `Socket.io-client`, `react-chartjs-2`  \nStyling: `TailwindCSS`, `DaisyUI`  \nNotifications \u0026 Icons: `React-Toastify`, `React Icons`\n\n### Backend\n\nFramework \u0026 Authentication: `Node.js`, `Express.js`, `JWT`, `bcrypt`  \nValidation \u0026 Documentation: `Zod`, `Swagger-jsdoc`  \nReal-Time Communication: `Socket.io`  \nDatabase \u0026 ORM: `Mongoose`\n\n### Others\n\nAPI Communication: `Axios`\n\n## Installation and Setup\n\n### Prerequisites\n\n- Node.js and npm/yarn installed.\n- MongoDB database set up locally or on a cloud provider.\n\n### Steps\n\n1. Clone the Repository\n\n   ```bash\n   git clone https://github.com/ManikMaity/LivePoll.git\n   cd LivePoll\n   ```\n\n2. Backend Setup\n   - Navigate to the backend directory:\n     ```bash\n     cd backend\n     ```\n   - Install dependencies:\n     ```bash\n     npm install\n     ```\n   - Create a `.env` file and add the following:\n     `env\nPORT=3000\nDB_CONNECTION=\"your mongodb url\" \nSALT_ROUNDS=6\nJWT_PRIVATE=\"your jwt private key\"\nCLIENT_URL=\"your client url\"\n `\n   - Start the server:\n     ```bash\n     npm run dev\n     ```\n\n3. Frontend Setup\n   - Navigate to the frontend directory:\n     ```bash\n     cd frontend\n     ```\n   - Install dependencies:\n     ```bash\n     npm install\n     ```\n   - Update `.env` file with the backend URL (e.g., `http://localhost:3000`).\n   - Start the development server:\n     ```bash\n     npm start\n     ```\n\n4. Access the Application\n   - Open a browser and go to `http://localhost:5173`.\n\n---\n\n### To Switch Between Local and Deployed Environments\n\n- Update backend `.env` with:\n  ```env\n  BACKEND_URL=http://localhost:3000\n  ```\n- Update frontend Axios base URL to:\n  ```javascript\n  axios.defaults.baseURL = \"http://localhost:3000/api/v1\";\n  ```\n- Update the Socket.io URL in the voting page:\n  ```javascript\n  const socket = io(\"http://localhost:3000\");\n  ```\n\n---\n\n## Usage\n\n- Navigate to the `frontend` directory and run `npm run dev` to start the development server.\n- Navigate to the `backend` directory and run `npm run dev` to start the server.\n- Open a browser and go to `http://localhost:5173` to access the application.\n\n## Future Improvements\n\n- Add a search feature to the poll page.\n- Add like feature to the poll.\n- sorting polls using created date and popularity.\n- Updated user.\n- User avatar.\n- Multiple question poll.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanikmaity%2Flivepoll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanikmaity%2Flivepoll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanikmaity%2Flivepoll/lists"}