Skip to content
cccskills
FreePublished on GitHub

setup-deployment

Complete setup and deployment workflow for Next.js applications with Prisma, Capacitor mobile apps, and production hosting. Use when the user wants to set up a new project, deploy to production, configure environments, run database migrations, or prepare an app for release. Triggers on: "setup the app", "deploy the app", "install dependencies", "run migrations", "configure environment", "build for production", "capacitor sync", "prepare for release", "run the setup script".

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5 stars(GitHub 5 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md4.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Setup & Deployment

This skill covers the complete setup, configuration, and deployment workflow for Next.js applications with Prisma ORM, Capacitor mobile apps, and production hosting.

Setup Script

The interactive setup script (setup.ps1) provides a menu-driven workflow:

# Run the setup wizard
.\setup.ps1

# Or run specific steps manually
npm install                    # Install all dependencies
npx prisma generate           # Generate Prisma client
npx prisma db push           # Push schema to database (dev)
npx prisma migrate deploy    # Run migrations (prod)
npm run build                # Production build
npx cap sync                 # Sync Capacitor projects

Database Setup

Option 1: Docker (Local Development)

docker-compose up -d
# Database available at: postgresql://postgres:postgres@localhost:5432/massage_connect

Option 2: Supabase (Recommended for Production)

  1. Create project at https://supabase.com/dashboard
  2. Copy connection string from Settings > Database
  3. Update .env.local:
DATABASE_URL="postgresql://postgres.[PROJECT_REF]:[PASSWORD]@aws-0-[REGION].pooler.supabase.com:5432/postgres"

Option 3: Neon

  1. Create project at https://neon.tech
  2. Copy connection string
  3. Update .env.local

Environment Configuration

Create .env.local from template:

cp .env.example .env.local

Required variables:

DATABASE_URL="postgresql://..."
JWT_SECRET="your-random-secret-min-32-chars"
JWT_EXPIRES_IN="7d"
REFRESH_TOKEN_SECRET="your-random-refresh-secret"
REFRESH_TOKEN_EXPIRES_IN="30d"
STRIPE_SECRET_KEY="sk_test_..."
STRIPE_WEBHOOK_SECRET="whsec_..."
RESEND_API_KEY="re_..."
NEXT_PUBLIC_APP_URL="https://yourdomain.com"
NODE_ENV="production"

Deployment Options

Vercel (Recommended for Next.js)

// vercel.json
{
  "buildCommand": "npm run build",
  "devCommand": "npm run dev",
  "installCommand": "npm install",
  "framework": "nextjs",
  "outputDirectory": ".next",
  "regions": ["iad1", "sfo1", "fra1", "syd1"],
  "crons": [
    {
      "path": "/api/system/cron",
      "schedule": "0 2 * * *"
    }
  ]
}

Deploy:

npx vercel --prod

Docker

docker-compose up -d --build

Self-Hosted

npm run build
npm start
# Requires: Node.js 18+, PostgreSQL

Mobile App Setup

Android

npm install @capacitor/android
npx cap add android
npx cap sync
npx cap open android  # Opens in Android Studio

iOS

npm install @capacitor/ios
npx cap add ios
npx cap sync
npx cap open ios  # Opens in Xcode

Build Release

# Build web assets
npm run build

# Sync to native projects
npx cap sync

# Generate icons
node scripts/generate-icons.js

# Build Android AAB
npx cap build android

# Build iOS
npx cap build ios

Pre-Production Checklist

Security

  • Change all default secrets in .env.local
  • Enable CSRF protection
  • Set up rate limiting on sensitive endpoints
  • Enable HTTPS only
  • Configure CORS properly

Performance

  • Enable Next.js image optimization
  • Set up CDN for static assets
  • Configure database connection pooling
  • Enable compression

Monitoring

  • Set up Sentry error tracking
  • Configure health check endpoint
  • Set up daily cron jobs
  • Enable logging

App Store

  • Generate app icons (1024x1024)
  • Create splash screens
  • Update AndroidManifest.xml
  • Update iOS Info.plist
  • Configure push notifications
  • Generate screenshots for stores

Post-Deployment

  1. Run database migrations:
npx prisma migrate deploy
  1. Verify health check:
curl https://yourdomain.com/api/health
  1. Test critical flows:

    • Registration
    • Login
    • Booking
    • Payment
  2. Set up monitoring alerts

  3. Configure backup strategy

  4. Document operational procedures

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

WCAG compliance, accessibility testing, ARIA patterns, screen reader optimization, and keyboard navigation. Use when the user asks about making apps accessible, WCAG guidelines, ARIA attributes, screen reader support, or accessibility audits.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Generate AI music using ACE-Step 1.5 via ACE Music's free API. Use when the user asks to create, generate, or compose music, songs, beats, instrumentals, or audio tracks. Supports lyrics, style prompts, covers, and repainting. Free API, no cost.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

A continuously adaptive skill suite that empowers Clawdbot to act as a versatile coder, business analyst, project manager, web developer, data analyst, and NAS metadata scraper. It intelligently discovers free resources, adapts to user context, and ensures reliable, proven guidance across multiple domains.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

High-fidelity intelligence gathering and data assimilation. Focuses on synthesizing fragmented data into a comprehensive target operational picture.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Use when Codex needs proactive task queues, heartbeat routines, scheduled follow-up, or continuous work loops instead of waiting for prompts.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

See all skills by ProjectZeroDays

Report a problem with this skill