Installation

1

Clone the Repository

Start by cloning the repository to your local machine.

git clone https://github.com/yourusername/best-saas-kit.git
2

Install Dependencies

Navigate to the project directory and install the required dependencies.

cd best-saas-kit
npm install
3

Environment Setup

Create a .env.local file in the root directory with your environment variables.

# App
NEXT_PUBLIC_APP_URL=http://localhost:3000

# Supabase
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key

# Stripe
STRIPE_SECRET_KEY=your_stripe_secret_key
STRIPE_WEBHOOK_SECRET=your_webhook_secret
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_publishable_key

# Email (Resend)
RESEND_API_KEY=your_resend_api_key
4

Start Development Server

Run the development server to start working on your project.

npm run dev

Project Structure

The project follows a clean and organized structure: - /app - Next.js app router pages and API routes - /components - Reusable React components - /lib - Utility functions and configurations - /public - Static assets - /styles - Global styles and Tailwind configuration