- Consultation of voting information by cédula
- Display of personal voting details
- Viewing of acta (voting record) image when available
- Error handling for API request failures
- Caching with Supabase
Before you begin, ensure you have met the following requirements:
- Node.js (v14.0.0 or later)
- npm (v6.0.0 or later)
- A Supabase database
-
Clone the repository:
git clone https://github.com/ielijose/actas-elecciones-2024.git cd actas-elecciones-2024
-
Install the dependencies:
npm install
-
Create a
.env.local
file in the root directory of the project. -
Add the following environment variables to the
.env.local
file:NEXT_PUBLIC_SUPABASE_URL= SUPABASE_SERVICE_ROLE_KEY=
Replace varaibles with your actual Supabase credentials.
To run the application in development mode:
npm run dev
The application will be available at http://localhost:3000
.
This application is designed to be deployed on Vercel, but you can deploy it to any platform that supports Next.js applications.
-
Push your code to a GitHub repository.
-
Go to Vercel and sign up or log in.
-
Click on "Import Project" and select your GitHub repository.
-
Configure your project settings:
- Framework Preset: Next.js
- Build Command:
npm run build
- Output Directory:
.next
-
Add your environment variables in the Vercel project settings.
-
Click "Deploy" and wait for the deployment to complete.
For other platforms, consult their specific documentation for deploying Next.js applications. Generally, you'll need to:
-
Build the application:
npm run build
-
Start the application in production mode:
npm start
Ensure that you set up your environment variables on your hosting platform.
Contributions to this project are welcome. Please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
. - Make your changes and commit them:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature-branch-name
. - Create a pull request.