Project Setup
Setting up your project correctly is crucial for a smooth development process. Follow these steps to get your SaaS project up and running:
-
Clone the Repository (skip if you've already done this in Prerequisites)
git clone https://github.com/Just-Understanding-Data-Ltd/supabase-tdd-boilerplate.git
cd supabase-tdd-boilerplate -
Install Dependencies
pnpm install
-
Set Up Environment Variables The repository includes example environment files for each application. You will fill these values incrementally as you set up Supabase and Google Sign-In in the following steps.
# Copy example environment files
cp apps/web/.env.example apps/web/.env.local
cp apps/api/.env.example apps/api/.env
cp packages/supabase/.env.example packages/supabase/.env -
Run the Development Server
pnpm dev
This will start:
- The Next.js frontend application (usually on http://localhost:3000)
- The Hono API application (usually on http://localhost:8080)