Look at the Nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# pnpm
pnpm install
This project uses a local instance of Supabase, you can start it with the following command:
npx supabase start
Upon start, Supabase will provide you the database URL. Copy it, and paste it in the .env
file:
DATABASE_URL=<supabase-database-url>
Start the development server on http://localhost:3000
:
# pnpm
pnpm run dev
You can checkout the last commit to see the diff, and run the following command:
pnpm migrate
This will generate the SQL migration file in the migrations
folder.
To run the migration, you can visit http://localhost:3000/_nitro/tasks/db:migrate. The migration should be ran automatically. (Note that the dev server needs ot be running)
To inspect the database, you can use the Studio URL provided by supabase when you started the instance.