Next.js Supabase Template
Modern full-stack template with Next.js 14, Supabase, Tailwind CSS, and shadcn/ui. Perfect for building web applications quickly.
Features
- Next.js 14 - React framework
- Supabase - Auth and database made easy
- shadcn/ui + Tailwind - Beautiful, ready-to-use components
- TypeScript - Type safety for better code
Before You Start
Create these free accounts (you'll need them):
- GitHub - to store your code
- Vercel - to make your site live (use GitHub to sign up)
- Supabase - for your database (use GitHub to sign up)
Step-by-Step Guide
1. Get Your Own Copy of the Template
- Go to github.com/juanmaramos/nextjs-supabase-template
- Click the green "Use this template" button
- Click "Create a new repository"
- Fill in:
- Repository name (e.g., "my-website")
- Description (optional)
- Select "Public"
- Click "Create repository"
2. Set Up Your Computer for Coding
Download and install these two programs:
- Cursor - This is where you'll write your code
- Node.js - Pick the "LTS" version
Open your project in Cursor:
Get your project running:
- In Cursor, press Cmd+J (Mac) or Ctrl+J (Windows) to open the terminal
- Type these commands one by one:
npm install
npm run dev
- Open your web browser to http://localhost:3000
- You should see your website running locally!
3. Make Changes to Your Code
- Edit files in Cursor
- See your changes live at http://localhost:3000
- Save your changes to GitHub:
- Press Cmd+Shift+G (Mac) or Ctrl+Shift+G (Windows)
- Type a message describing what you changed
- Click "Commit"
- Click "Sync" to save to GitHub
4. Add Your Database (Optional)
- Go to supabase.com
- Click "New Project"
- After creation, go to Project Settings > API
- Copy these values:
NEXT_PUBLIC_SUPABASE_URL=your-project-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
- Create a file named
.env.local
in your project
- Paste the values into this file
5. Make Your Site Live
- Go to vercel.com/new
- Select your repository
- If you added a database, under "Environment Variables", add your Supabase values
- Click "Deploy"
- Wait a few minutes - your site is going live!
Project Structure
src/
├── app/ # Your pages live here
├── components/ # Reusable UI components
└── lib/ # Helper functions
Adding Features
Add pre-built components:
npx shadcn@latest add button # Example: adding a button component
Need Help?
Made by Juan Ramos • MIT License