Get started
Hey maker, welcome to Spectra 👋
Here's a quick overview of the boilerplate. Follow along to get your app up and running.
Once you're done, start with this tutorial to launch your project in 5 minutes. Let's build that startup, FAST ⚡️
Start a local server
- In your terminal, run the following commands one-by-one:
requires Node v20.17.0 or greater. Type "node -v" in your terminal to check version.
- Rename .env.example to .env.local
-
Go to the Supabase dashboard, create a new project and paste your 2 Supabase environment variables NEXT_PUBLIC_SUPABASE_URL & NEXT_PUBLIC_SUPABASE_ANON_KEY in .env.local
-
Open http://localhost:3000 to see your site. And voila!
You might see errors in the console but nothing important.
NextJS project structure
api
page.tsx
layout.tsx
...
config.ts file
It is where you configure your app. Each key is documented to know how and why it's used. Have a thorough look at it, it is the backbone of the app.
.env file
Rename the .env.example file to .env.local, The file content should look like this:
Last updated on