PollZone is a dynamic platform designed to empower creators to launch polls, collections, or projects. Our goal is to create a collaborative environment where fans can participate by voting on their favorite options, ultimately deciding which options should be elected or implemented.
PollZone enables creators to:
- Launch polls, collections, or projects.
- Engage with fans to determine the most popular options.
Creating a collaborative environment for both creators and fans:
- For Fans:
- Explore a variety of projects and polls.
- Participate by voting on your favorite options.
- Use the dashboard to track the polls and creators you’ve interacted with.
- For Creators:
- Create and edit polls with multiple options.
- Set voting timers to control how long voting stays open.
- Gain insights into how fans are voting.
- Use the dashboard to view all projects.
-
For Fans:
- Sign up and explore available projects and polls.
- Vote on your favorite options.
- Use the personalized dashboard to track your interactions.
-
For Creators:
- Create and manage polls with multiple options.
- Set timers for voting periods.
- Analyze voting patterns to gain insights.
- Monitor all active and completed projects through the dashboard.
- Launch and manage polls, collections, or projects.
- Vote on favorite options and track engagement.
- Personalized dashboards for both fans and creators.
- Insights and analytics on voting patterns.
- Frontend: React, Vite
- Backend: ExpressJS, Node.js
- Database: MongoDB (Compass/Atlas)
- React: For building the user interface.
- Axios: Used for making HTTP requests.
- React Router: For handling routing within the application.
- React Toastify: For displaying notifications.
To get started with the frontend of PollZone, follow these steps:
- Clone the repository:
git clone https://github.com/justArale/pollzone-client.git
- Navigate to the frontend directory:
cd pollzone-client
- Install dependencies:
npm install
- Set up environment variables in a
.env
file:VITE_API_URL=http://localhost:5000/api
- Start the development server:
npm run dev
To get started with the backend of PollZone, follow these steps:
- Clone the repository (if you haven't already):
git clone https://github.com/justArale/pollzone-server.git
- Navigate to the backend directory:
cd pollzone-server
- Install dependencies:
npm install
- Set up environment variables in a
.env
file:PORT=5000 ORIGIN=http://localhost:3000 TOKEN_SECRET=your_jwt_secret MONGODB_URI=your_mongodb_uri
- Start the development server:
npm run dev
To ensure the frontend and backend communicate correctly:
-
In the frontend, set the API URL to the backend server in the
.env
file:VITE_API_URL=http://localhost:5000/api
-
In the backend, ensure CORS is configured to allow requests from the frontend. Update
server.js
:const cors = require('cors'); app.use(cors({ origin: 'http://localhost:3000', credentials: true }));
We welcome contributions to PollZone! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m "Description of your changes"
- Push to the branch:
git push origin feature-branch
- Create a pull request and describe your changes in detail.
This project is licensed under the MIT License - see the MIT License file for details.
We would like to thank all our contributors and the open-source community for their support.