A web-app to visualize Indian General and Assembly elections. It has an interactive map and a dashboard with options where one can make custom alliances, apply swings and compare election results on a selected region and seats.
Place the environment variables in .env file in the root of the project folder. Please refer .env.example for example.
Following are the environment variables used in the project:
- Mapbox Access Token: This can be obtained by signing in to Mapbox.
- Live Election's Link: A link through which data for live election's result can be accessed.
-
First, install all the node_modules
npm install #or yarn install
-
Secondly, run the development server:
npm run dev # or yarn dev
-
Open http://localhost:3000/elections from the browser to see the result.
While deploying on netlify:
- Publish directory should be .next.
- Provide environment variable on netlify.
Please refer to the Netlify Blog post for more information
AGPL-3.0 License