This is an attendance system built with Next.js, TypeScript and Supabase.
- Go to https://supabase.io
- Log in to your Supabase account using GitHub.
- Create a new project, choose a database password and choose a region.
- Wait till the database has succesfully been built.
- Navigate to SQL.
- Create a new query.
- Copy the contents of init.sql into the query and run it.
- Navigate to Settings > Database.
- Navigate to Settings > API.
- Create a
.env
file in the project directory with the following contents:
SUPABASE_URL=[API URL]
SUPABASE_ANON_KEY=[Anonymous API Key]
SUPABASE_ADMIN_KEY=[Service Role API Key]
- The three values can be found under:
- [API URL]: Settings > API > Config > URL
- [Anonymous API Key]: Settings > API > API Keys > [anon][public]
- [Anonymous API Key]: Settings > API > API Keys > [service_role][secret]
- Run
npm run dev
ornpm exec next