My Email: shawnesquivel24@gmail.com
My Linkedin: https://www.linkedin.com/in/shawnesquivel
Use Cursor to Vibe Code Full Stack Apps (MCP, NextJS, Supabase)
Project.Demo.Fast.mp4
-
Fork the course repository on GitHub here
-
Clone the repository
git clone HTTPS_URL
- Populate ANTHROPIC_API_KEY and OPENAI_API_KEY.
- In the root directory, rename
.env.exampleand rename as.env
- Get your OPENAI_API_KEY
- Populate
supabase/functions/.env
-
Setup Task Master in MCP settings Task Master AI
-
Go through the Task Master Setup above.
-
Download Docker according to your system Docker
-
Download the Supabase CLI Supabase CLI Install
-
Add OpenAI Keys: In the
supabasefolder, renamesupabase/functions/.env.exampleand rename as.envGet OpenAI Keys -
Start Supabase
npx supabase start
Note: If you change your supabase/functions/.env file locally, then you'll need to restart npx supabase stop && npx supabase start
- Update your NextJS app
.env.localfile
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_ANON_KEY=ey...
- Serve Functions Locally
npx supabase functions serve --import-map ./supabase/functions/import_map.json
- Call the
hello-worldedge function.
curl -i --location --request POST 'http://127.0.0.1:54321/functions/v1/hello-world' \
--header 'Authorization: Bearer SUPABASE_ANON_KEY' \
--header 'Content-Type: application/json' \
--data '{"name":"Functions"}'
Instructions
- Rename .env.example to .env in
supabase/functions/.envand add your OPENAI_API_KEY


