Look at the Nuxt 3 documentation to learn more.
⚠ Sensitive information:
Delete this section before this repo becomes public.
This project requires a Supabase instance to be fully functional and hosting is done on Netlify.
- Add .env config on Netlify with the Supabase db URL and key
- Create a local .env file at root, containing Supabase db URL and key, for local development
- This project uses one database with two tables - 'members' and 'voters'
- members schema - id (unique password), name, sex, address, email, phone, dept
- voters schema - id (unique password), candidates, timestamp.
- Set true for RLS policy for the database operations
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn installStart the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn devBuild the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn buildLocally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn previewCheck out the deployment documentation for more information.