- If you plan to use Supabase as the database provider (recommended), create a new project on Supabase.
- Create a database in your Supabase project.
- Go to Database and click on Connect button on the top of the page.
- Click on App frameworks and select Next.js using App router with supabase-js.
- Copy the environment variables a fill them in the
.env.templatefile. - Click on Connection string, copy the transaction pooler string and fill it in the
.env.templatefile. - Rename
.env.templateto.env.local
- Install
npm i- Update the database with initial Users table
npx drizzle-kit push- Run the development server
npm run dev- Open http://localhost:3000 with your browser to see the result.