-
-
Notifications
You must be signed in to change notification settings - Fork 1
Environment Variables
Alberto edited this page Oct 26, 2023
·
5 revisions
-
Open the
.env.local
file, this is where you will store your environment variables. -
Fill in
PUBLIC_SUPABASE_URL
andPUBLIC_SUPABASE_ANON_KEY
with yourProject URL
and 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_URL
with 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 defaultpostgres
user 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_KEY
andSTRIPE_SECRET_KEY
with your Stripe keys (publishable and secret).