Template from Next Starter AI.
# Install dependencies
yarn install
# Run the development server
yarn run dev
# Build for production
yarn run build
- Add components and pages in the components directory.
- Don't hardcode any data in the components, use props instead.
- Don't put the page components in the app directory, put them in the components directory. The app directory is only for the layout, routing, and business logic.
- Add a .stories.ts file per component in the stories directory.
Use yarn run storybook
to view the components in isolation, test, debug and document them.
# login to supabase
npx supabase login
# init the project (do this only once)
npx supabase init
# create a migration
npx supabase migration new schema_test
# Select the project
npx supabase link
# get cahnges from upstream
npx supabase db pull
# reset the database (apply migrations and seed data)
npx supabase db reset
# Apply migrations to the database
npx supabase db push
# setup local environment
npx supabase db start
# get typescript types
npx supabase gen types --lang=typescript --local > types/supabase.ts