Get your development environment up and running with this step-by-step installation guide.
Before you begin, make sure you have the following installed:
After purchasing your license, download the boilerplate:
unzip rapidstack-nuxt4.zip
cd rapidstack-nuxt4
Install all project dependencies using PNPM:
pnpm install
This will install all required packages including Nuxt 4, Prisma, Stripe, authentication libraries, and more.
Create a .env file in the root directory. You can start by copying the example file:
cp .env.example .env
Then, edit .env with your configuration. At minimum, you'll need the Database connection string and Site configuration.
# Database
DATABASE_URL="postgresql://user:password@localhost:5432/myapp"
# Site configuration
NUXT_PUBLIC_SITE_URL="http://localhost:3000"
NUXT_PUBLIC_SITE_NAME="Your App Name"
NUXT_PUBLIC_SITE_DOMAIN="localhost"
# Email (Resend)
RESEND_API_KEY="re_..."
# Stripe payments
STRIPE_SECRET_KEY="sk_test_..."
NUXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="pk_test_..."
STRIPE_WEBHOOK_SECRET="whsec_..."
auth or authless) is configured in app/config/payments.config.ts, not in environment variables..env file to version control. It contains sensitive credentials.You'll need a PostgreSQL database. You can either:
If using a local database, create it:
createdb myapp
DATABASE_URL in the .env file matches your database:postgresql://username:password@localhost:5432/database_nameDATABASE_URL="postgresql://postgres:yourpassword@localhost:5432/myapp"
Run Prisma migrations to set up your database schema:
pnpm prisma migrate dev
This creates all necessary tables including users, sessions, payments, subscriptions, and more.
prisma/schema.prisma.If you want to add test data, you can create a seed script:
pnpm prisma db seed
Now you're ready to start the development server:
pnpm dev
The application will be available at http://localhost:3000.
To make sure everything is working correctly:
/auth/registerNow that your installation is complete:
If port 3000 is already in use, you can change it:
PORT=3001 pnpm dev
Make sure your DATABASE_URL is correct and PostgreSQL is running:
# Check if PostgreSQL is running
pg_isready
# Or with psql
psql -h localhost -U your_username -d your_database
If you're having Prisma-related issues, try:
# Generate Prisma client
pnpm prisma generate
# Reset the database (⚠️ deletes all data)
pnpm prisma migrate reset
If you see module import errors after installation:
# Clear Nuxt cache
rm -rf .nuxt
# Reinstall dependencies
rm -rf node_modules pnpm-lock.yaml
pnpm install