Edit in StackBlitz next generation editor ⚡️
This project uses Supabase as the backend database. Follow the steps below to configure the environment and initialize the database.
- A Supabase account.
- Log in to your Supabase account.
- Create a new project and note the following details:
- API URL: This will be your
VITE_SUPABASE_URL
. - Anon Key: This will be your
VITE_SUPABASE_ANON_KEY
.
- API URL: This will be your
- Create a
.env
file in the root of your project. - Add the following lines to the
.env
file and replace the placeholders with your Supabase credentials:VITE_SUPABASE_URL=<your_supabase_url> VITE_SUPABASE_ANON_KEY=<your_supabase_anon_key>
- Navigate to the "SQL Editor" in the Supabase Dashboard.
- Open the
./supabase/migration/20240323000000_initial_schema.sql
file from the project repository. - Copy the SQL script's content and paste it into the SQL Editor.
- Run the query to create the required database schema.
Go to the "Table Editor" in the Supabase Dashboard to confirm that the tables have been created successfully.