-
-
Couldn't load subscription status.
- Fork 1
Environment Variables
Alberto edited this page Oct 26, 2023
·
5 revisions
-
Open the
.env.localfile, this is where you will store your environment variables. -
Fill in
PUBLIC_SUPABASE_URLandPUBLIC_SUPABASE_ANON_KEYwith yourProject URLand Supabase credentials. You can find both of them in your Supabase Dashboard underProject Settings > API > Project API keys, linked here.
For this step you can use any postgres database; my recommendations are Supabase, Vercel, Railway or Heroku.
- Fill in
DATABASE_URLwith your connection string. In a local evironment is preferable that you use a local postgres database, you can install postgres from here and use the defaultpostgresuser with the password you set during the installation. The connection string in this case would look like this:
postgresql://postgres:password@localhost:5432/postgres - Once you are done with the configuration, create the database tables on your local postgres server:
bun db:push - Finally, start the development server:
bun dev -
Create a Stripe account and get your API keys from the dashboard.
-
Fill in
STRIPE_PUBLIC_KEYandSTRIPE_SECRET_KEYwith your Stripe keys (publishable and secret).