This is a NextJS application using React, Next App Router, Tailwind CSS and Typescript.
pnpm install
pnpm dev
pnpm build
This project uses Supabase for database, auth and storage management. You can create a free account and use the provided API keys to run the app locally.
You can also download the Supabase CLI and run supabase init
to create a local instance of the database.
Then you can run supabase start
to start the local instance.
Check the url after starting supabase with supabase status
.
This projects uses the supabase postgres database. The schema is defined in the src/server/schema.ts
file using Drizzle. You can run the following command to create the tables in the database:
If this is the first time you are running the project, you can run the following command to init the database. You can also run this command to reset the database to the initial state.
supabase db reset
It's an admin account, you can manage everything from it or in the supabase studio.
# To check the is the schema is up to date
pnpm db:check
# To create a new migration
pnpm db:generate
# To run the migration
supabase migration up
You can also rollback migrations with the following command:
pnpm db:drop
You can also update the seed with the following command:
supabase db dump -f supabase/seed.sql --local --data-only -s public -s storage -s auth
This project is deployed on Vercel. The deployment is triggered automatically when a new commit is pushed to the main
branch.