Skip to content

Installation

This guide will walk you through setting up the Nuxt SaaS Kit. We'll cover the entire process, including cloning the project, installing dependencies, setting up the database, and running the development server.

Step 1: Clone the repository

  • Open your terminal.
  • Navigate to the directory where you want to store the project.
  • Run the following command:
sh
$ git clone https://github.com/okikelabs/nuxt-saas-kit.git

Step 2: Configure Environment Variables

  • Move into the project
sh
$ cd nuxt-saas-kit
  • Copy the .env.example file to .env:
sh
$ cp .env.example .env

Here's a list of the environment variables you need to set up for your project:

NameDescription
NUXT_PUBLIC_SITE_URLThe public URL of your Nuxt application
DATABASE_URLConnection string for your database
SUPABASE_URLThe URL of your Supabase project
SUPABASE_KEYThe key for your Supabase project
LEMONSQUEEZY_API_KEYAPI key for LemonSqueezy integration
LEMONSQUEEZY_SIGNING_SECRETSigning secret for verifying LemonSqueezy webhooks
LEMONSQUEEZY_STORE_IDYour LemonSqueezy store ID
LEMONSQUEEZY_STORE_URLThe URL of your LemonSqueezy store
EMAIL_SENDER_ADDRESSEmail address used as the sender for outgoing emails
POSTMARK_API_KEYAPI key for Postmark email service (if used)
RESEND_API_KEYAPI key for Resend email service (if used)
SENDGRID_API_KEYAPI key for SendGrid email service (if used)
CRISP_WEBSITE_IDYour Crisp Website ID for customer support chat integration

Step 3: Install Dependencies

sh
$ npm install
sh
$ pnpm install
sh
$ yarn install

Step 4: Run the Development Server

  • Start the development server:
sh
$ npm run dev
sh
$ pnpm dev
sh
$ yarn dev
  • Open your browser and navigate to http://localhost:3000 to see your Nuxt SaaS Kit in action.