Prerequisites
Before you begin setting up the Supabase TDD Boilerplate, ensure you have the following tools and accounts set up:
Getting Started
First, clone the repository:
git clone https://github.com/Just-Understanding-Data-Ltd/supabase-tdd-boilerplate.git
cd supabase-tdd-boilerplate
Required Tools
-
Git: For version control. Install Git
-
PNPM: Required for managing the monorepo. Install using npm:
npm install -g pnpm
-
Docker: Required for running Supabase locally. Install Docker
-
Supabase CLI: Already included in the monorepo's dependencies. You can verify it's working by running:
cd packages/supabase
npx supabase --version
Required Accounts (All services offer free tiers to get started)
-
GitHub Account: For version control and deployment. Sign up for GitHub.
-
Supabase Account: For database and authentication. Sign up for Supabase.
-
Google Cloud Account: For Google Sign-In. Sign up for Google Cloud.
Development Environment
- A code editor (we recommend VS Code or Cursor)
- Git for version control
- Terminal with shell support (bash, zsh, etc.)
Recommended VS Code Extensions
- TypeScript and JavaScript Language Features: Built into VS Code
- ESLint: For code linting
- Prettier: For code formatting
- Vitest: For test running and debugging
- Docker: For Docker container management
- Turborepo: For monorepo management
- Next.js: For Next.js development
- Tailwind CSS: For styling
Project Structure
The project follows a monorepo structure:
supabase-tdd-boilerplate/
├── apps/
│ ├── web/ # Next.js frontend application
│ └── api/ # Hono API application
├── packages/
│ ├── supabase/ # Supabase configuration and migrations
│ ├── ui/ # Shared UI components
│ └── config/ # Shared configuration
├── tools/ # Development tools and scripts
└── docs/ # Documentation
Next Steps
Once you have all the prerequisites in place, you're ready to: