This Event management system is built with Next.js and utilizes Supabase as the backend database. Supabase is set up to run locally using Docker containers. Below are instructions on how to set up, run, and manage the project.
Before getting started, ensure you have the following installed on your system:
- Docker
- Node.js
- Yarn
- Clone the repository to your local machine.
- Navigate to the project directory in your terminal.
- Run the following command to start Supabase locally:
yarn db:start
- Verify the status of the local Supabase instance:
yarn db:status
- Copy the example env file
.env.example
to.env.local
cp .env.example .env.local
- Copy the
API URL
andanon key
from the output of step 2 and paste it as respective variable in.env.local
file
- To generate migration files based on changes in the database schema, run:
yarn migration:generate
- Push the generated migrations to the local Supabase instance with the following command:
yarn migration:push
To start the Next.js development server, run:
yarn dev
dev
: Starts the Next.js development server.db:start
: Starts the local Supabase instance using Docker containers.db:stop
: Stops the local Supabase instance.db:status
: Checks the status of the local Supabase instance.db:types
: Generates TypeScript types to the file./schema.gen.ts
based on the Supabase schema.db:reset
: Resets the local Supabase database.migration:generate
: Generates migration files based on database schema changes.migration:push
: Pushes migration files to the local Supabase instance.
For more information about Next.js, visit the Next.js documentation. For more information about Supabase, visit the Supabase documentation.