A modern React application for the BITS Pilani unified voting platform featuring elections, course ratings, and department/club voting.
Hosted Url: https://pollz.bits-acm.in/
- Node.js 19+
- npm or yarn
- For Frontend Windows works fine but if you aim for full stack, Linux or macOS (preferred). On Windows, use WSL or dual boot.
-
Fork the repositories on GitHub (backend, frontend, websocket) from the original organization:
- Backend: bitsacm/pollz-backend
- Frontend: bitsacm/pollz-frontend
- Websocket: bitsacm/pollz-websocket
-
Clone your forks into a single
pollz
folder (replace<your-github-username>
with yours):# Create a parent folder to keep all Pollz repos together mkdir pollz cd pollz # Clone backend git clone https://github.com/<your-github-username>/pollz-backend.git # Clone frontend git clone https://github.com/<your-github-username>/pollz-frontend.git # Clone websocket git clone https://github.com/<your-github-username>/pollz-websocket.git
-
Add upstream remotes to fetch updates from the official repos:
cd pollz-backend git remote add upstream https://github.com/bitsacm/pollz-backend.git cd .. cd pollz-frontend git remote add upstream https://github.com/bitsacm/pollz-frontend.git cd .. cd pollz-websocket git remote add upstream https://github.com/bitsacm/pollz-websocket.git cd ..
-
Fork the repository on GitHub.
-
Clone your fork (replace
<your-github-username>
):git clone https://github.com/<your-github-username>/pollz-frontend.git cd pollz-frontend
-
(Optional but recommended for contributors) Add the original repo as upstream:
git remote add upstream https://github.com/bitsacm/pollz-frontend.git git fetch upstream
Note: Make sure you are inside the
pollz-frontend/
directory before running the following commands.
- Install dependencies
npm install
- Setup environment variables
cp .env.example .env
# Edit .env with your API endpoints
- Run development server
npm start
Application will open at http://localhost:3000