Complete guide to setting up ignitionstack.pro for development and production.
npm installcp .env.example .env
# Edit .env with your credentialsConfigure database, auth, and storage. See Supabase Setup.
npm run devConfigure all required and optional environment variables
Environment VariablesDatabase, authentication, and storage setup
SupabasePayment processing and webhooks
StripeTransactional emails with Resend
EmailGoogle Analytics and Mixpanel tracking
Analytics| Setup | Purpose | Time |
|---|---|---|
| Environment Variables | Application configuration | 5 min |
| Supabase | Database + Auth + Storage | 15 min |
| Setup | Purpose | When Needed |
|---|---|---|
| Stripe | Payment processing | E-commerce features |
| Transactional emails | Contact forms, notifications | |
| Analytics | User tracking | Production monitoring |
| AI | Chatbot features | AI features enabled |
| File | Purpose |
|---|---|
.env | Environment variables |
supabase/config.toml | Local Supabase config |
next.config.ts | Next.js configuration |
tailwind.config.ts | Tailwind CSS setup |
| File | Purpose |
|---|---|
.vscode/settings.json | VS Code configuration |
vitest.config.ts | Unit test configuration |
playwright.config.ts | E2E test configuration |
# Copy example env file
cp .env.example .env
# Install dependencies
npm install
# Start dev server
npm run devDevelopment server runs at http://localhost:3000
# Build application
npm run build
# Start production server
npm run start# Unit tests
npm run test
# E2E tests
npm run e2eComplete setup with all features:
Just get it running:
Isolated development:
After setup, verify everything works:
npm run db:genShould generate types without errors.
npm run devVisit http://localhost:3000
Navigate to /login and test sign-in.
Access /admin with an admin email.
Port 3000 already in use
npm run stop:allEnvironment variables not loading
.env file exists in rootNEXT_PUBLIC_ prefix for client varsSupabase connection failed
.envBuild errors
# Clear cache and reinstall
npm run clean
npm run build