Configuration
Setting up all necessary environment variables to run the project.
Environment Variables
That that we have our project cloned, and database set up, we need to set up our environment variables. To do this, we will need to create a .env
file in the root of our project.
Supabase
To retrieve the Supabase variables, we can run the following command in our terminal:
This will return a list of urls and keys about our project. We will need to add the following variables to our .env
file:
Github OAuth
For local authentication we will be using GitHub. To set this up, we will need to create a GitHub OAuth app. Go to your GitHub settings and click on “Developer Settings” in the sidebar. Then click on “OAuth Apps” and “New OAuth App”. Fill out the form with the following information:
- Application Name:
Development
- Homepage URL:
http://localhost:3000
- Authorization callback URL:
http://127.0.0.1:54321/auth/v1/callback
Once you have created the app, you will be given a Client ID and Client Secret. Add these to your .env
file:
Resend
To send emails, we will be using Resend. Create an account and add your API key to your .env
file:
Other
We will also need to add one other variables to our .env
file:
Next Steps
Now that we have everything set up, we are ready to start the development server and begin building.
Was this page helpful?