← Back to Home|

Development Framework

πŸš€

Development Framework

Complete Full-Stack Setup - Create production-ready applications with zero configuration

Next.js 15PostgreSQLGraphQLReact NativeAuto-Deploy

🎯 What You Get - Complete Stack

Every project created with this framework gets a complete, production-ready setup:

🌐 Web Projects (--type=web)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Next.js App β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Frontend β”‚ API Routes β”‚ β”‚ β”‚ β”‚ (React) β”‚ GraphQL β”‚ β”‚ β”‚ β”‚ TailwindCSSβ”‚ Health Check β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ PostgreSQL β”‚ β”‚ + Drizzle β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • βœ… Next.js 15 with App Router, TypeScript, TailwindCSS
  • βœ… GraphQL Server (Apollo Server) at /api/graphql
  • βœ… PostgreSQL Database with Drizzle ORM
  • βœ… Health Check endpoint at /api/health
  • βœ… Database Schema with users & items tables

πŸ“± Mobile Apps (--type=app)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ React Native App β”‚ β”‚ (Mobile Client) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ GraphQL β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Express.js API Server β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ GraphQL + Health Check β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ PostgreSQL β”‚ β”‚ + Drizzle β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • βœ… React Native with Expo + TypeScript
  • βœ… Separate API Server (Express.js + GraphQL)
  • βœ… PostgreSQL Database with Drizzle ORM
  • βœ… GraphQL Server at /graphql endpoint
  • βœ… Health Check endpoint at /health

πŸ›  Framework Scripts

create-project.sh

Creates complete, production-ready applications with everything configured.

~/schybo/scripts/dev-framework/create-project.sh \
Β Β --name=my-recipe-app \
Β Β --type=app \
Β Β --init-git
--name - Project name (required)
--type - app or web
--init-git - Auto-create GitHub repo
--github - GitHub username

setup-deployment.sh

Deploys your complete application to DigitalOcean with zero manual configuration.

~/schybo/scripts/dev-framework/setup-deployment.sh \
Β Β --domain=myapp.com \
Β Β --project=my-app \
Β Β --type=web \
Β Β --auto-deploy
--domain - Your domain name
--project - Project name
--auto-deploy - Deploy everything automatically
--no-secrets - Skip GitHub secrets

🎯 Production Features

πŸ”

Smart Port Detection

Dynamically assigns ports during deployment, prevents conflicts

🌐

Complete Nginx Setup

SSL certificates, reverse proxy, security headers

πŸ“¦

Secure Database Setup

Dedicated users, proper permissions, migrations, environment setup

πŸ”„

PM2 Management

Process management, auto-restart, log handling

πŸ”

GitHub Integration

Auto-secrets, CI/CD workflows, deployment keys

πŸ₯

Health Monitoring

Built-in health checks, centralized dashboard

πŸ“Š

Performance Ready

pnpm, Next.js optimization, connection pooling

πŸ”’

Security First

JWT secrets, SSL auto-renewal, headers configured

🌍

DNS & SSL Automation

Let's Encrypt certificates, HTTPS redirects

🎯 Complete Workflow Example

1

Create Project

~/schybo/scripts/dev-framework/create-project.sh \ --name=protein-tracker \ --type=web \ --description="Track and rank protein bars" \ --init-git

Result: Complete Next.js app with PostgreSQL, GraphQL, health checks, and GitHub repo.

2

Local Development

cd ~/protein-tracker pnpm dev # Start Next.js with GraphQL pnpm db:studio # Open database UI

Result: Full development environment running locally with database management.

3

Deploy to Production

~/schybo/scripts/dev-framework/setup-deployment.sh \ --domain=proteintracker.com \ --project=protein-tracker \ --type=web \ --auto-deploy

Result: Live at https://proteintracker.com with SSL, database, monitoring.

4

Continuous Deployment

# Future updates are just: git push origin master # GitHub Actions automatically deploys to production

Result: Zero-config continuous deployment pipeline active.

πŸ’‘ Architecture Benefits

πŸš€ Web Projects Perfect For:

  • β€’ Landing pages, portfolios, blogs
  • β€’ Admin dashboards, SaaS apps
  • β€’ E-commerce, content sites
  • β€’ Single deployment - frontend + API together
  • β€’ GraphQL at /api/graphql

πŸ“± Mobile Projects Perfect For:

  • β€’ iOS/Android apps
  • β€’ Cross-platform mobile solutions
  • β€’ Separate API server - scalable architecture
  • β€’ GraphQL at /graphql
  • β€’ API-first design

πŸ“š Complete Tech Stack

Frontend

  • β€’ Next.js 15
  • β€’ React
  • β€’ TypeScript
  • β€’ TailwindCSS
  • β€’ Expo (Mobile)

Backend

  • β€’ GraphQL
  • β€’ Apollo Server
  • β€’ Express.js
  • β€’ Node.js
  • β€’ Health Checks

Database

  • β€’ PostgreSQL
  • β€’ Drizzle ORM
  • β€’ Migrations
  • β€’ Type Safety
  • β€’ Studio UI

DevOps

  • β€’ Nginx
  • β€’ PM2
  • β€’ Let's Encrypt
  • β€’ GitHub Actions
  • β€’ Auto-Deploy

πŸ“š Package Manager Consistency

Everything uses pnpm for consistency and performance:

βœ… Local development: pnpm install, pnpm dev
βœ… Server deployment: pnpm install, pnpm start
βœ… Database operations: pnpm db:push, pnpm db:studio
βœ… PM2 processes: Use pnpm for starting applications
βœ… GitHub Actions: All CI/CD uses pnpm
βœ… Faster installs with efficient dependency linking

πŸ₯ Built-in Health Monitoring

Every application gets comprehensive health monitoring:

Health Check Endpoints:

  • β€’ Web apps: https://yoursite.com/api/health
  • β€’ Mobile APIs: https://api.yoursite.com/health

Health Dashboard:

All applications appear automatically in the centralized health dashboard at: https://schybo.com/health-dashboard

Health Check Features:

  • βœ… Database connectivity testing
  • βœ… Memory usage monitoring
  • βœ… File system health
  • βœ… Service uptime tracking
  • βœ… GraphQL server status
  • βœ… Build process verification

πŸš€ Ready to Build?

Start building your features - the infrastructure is done! πŸŽ‰