Templates
Templates provide complete, working application code that you can customize. Unlike architectures (config-only), templates include full source code for both frontend and backend.
What’s Included in Templates
Section titled “What’s Included in Templates”Every template includes:
- Frontend code (Vue 3 with Tailwind CSS)
- Backend code (Express API on Cloud Functions)
- Database schemas and migrations (Drizzle ORM)
- Authentication setup (Firebase Auth)
- Ready-to-deploy configuration (stacksolo.config.json)
Using Templates
Section titled “Using Templates”# List available templatesstacksolo init --list-templates
# Create project from templatestacksolo init --template <template-name>
# Example: Create a SaaS appstacksolo init --template saas-starterWhen prompted, you’ll configure:
- Project name
- GCP Project ID
- Region
Available Templates
Section titled “Available Templates”| Template | Description | Difficulty |
|---|---|---|
| saas-starter | Complete SaaS foundation with Firebase Auth, Stripe billing, and Vue 3 | Intermediate |
| ai-chat | AI chat application with Vertex AI (Gemini), streaming responses | Intermediate |
| api-gateway | API monetization with key management, rate limiting (Redis), usage tracking | Advanced |
| ecommerce | E-commerce store with Stripe products, cart, checkout, orders | Intermediate |
| firebase-app | Full-stack app with Firebase Auth and Firestore | Beginner |
| firebase-postgres | Firebase Auth + PostgreSQL with Drizzle ORM | Intermediate |
| api-starter | Simple Express API ready to extend | Beginner |
| static-site | React static site with CDN deployment | Beginner |
Template vs Architecture vs Stack
Section titled “Template vs Architecture vs Stack”| Concept | What it provides | When to use |
|---|---|---|
| Template | Full source code + config | Starting a new project from scratch |
| Architecture | Config only (no code) | Adding infrastructure to existing code |
| Stack | Template + Architecture + Documentation | Complete applications you can customize |
After Creating from Template
Section titled “After Creating from Template”# Install dependenciesnpm install
# Start local developmentstacksolo dev
# Deploy to GCPstacksolo deployCustomizing Templates
Section titled “Customizing Templates”Templates are yours to modify. Common customizations:
- Add new pages - Create Vue components in
apps/web/src/pages/ - Add API routes - Create routes in
functions/api/src/routes/ - Add database tables - Update
functions/api/src/db/schema.ts - Change styling - Modify Tailwind config or component styles
Tech Stack
Section titled “Tech Stack”All templates use a consistent tech stack:
| Layer | Technology |
|---|---|
| Frontend | Vue 3 + Vite + Tailwind CSS + Pinia |
| Backend | Express on Cloud Functions |
| Database | PostgreSQL with Drizzle ORM (or Firestore) |
| Auth | Firebase Authentication |
| Payments | Stripe (when applicable) |
| Infrastructure | StackSolo (CDKTF/Terraform) |