claude-code-templates 1.14.13 → 1.14.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/package.json +1 -2
  2. package/templates/common/.claude/commands/git-workflow.md +0 -239
  3. package/templates/common/.claude/commands/project-setup.md +0 -316
  4. package/templates/common/.mcp.json +0 -41
  5. package/templates/common/CLAUDE.md +0 -109
  6. package/templates/common/README.md +0 -96
  7. package/templates/go/.mcp.json +0 -78
  8. package/templates/go/README.md +0 -25
  9. package/templates/javascript-typescript/.claude/commands/api-endpoint.md +0 -51
  10. package/templates/javascript-typescript/.claude/commands/debug.md +0 -52
  11. package/templates/javascript-typescript/.claude/commands/lint.md +0 -48
  12. package/templates/javascript-typescript/.claude/commands/npm-scripts.md +0 -48
  13. package/templates/javascript-typescript/.claude/commands/refactor.md +0 -55
  14. package/templates/javascript-typescript/.claude/commands/test.md +0 -61
  15. package/templates/javascript-typescript/.claude/commands/typescript-migrate.md +0 -51
  16. package/templates/javascript-typescript/.claude/settings.json +0 -142
  17. package/templates/javascript-typescript/.mcp.json +0 -80
  18. package/templates/javascript-typescript/CLAUDE.md +0 -185
  19. package/templates/javascript-typescript/README.md +0 -259
  20. package/templates/javascript-typescript/examples/angular-app/.claude/commands/components.md +0 -63
  21. package/templates/javascript-typescript/examples/angular-app/.claude/commands/services.md +0 -62
  22. package/templates/javascript-typescript/examples/node-api/.claude/commands/api-endpoint.md +0 -46
  23. package/templates/javascript-typescript/examples/node-api/.claude/commands/database.md +0 -56
  24. package/templates/javascript-typescript/examples/node-api/.claude/commands/middleware.md +0 -61
  25. package/templates/javascript-typescript/examples/node-api/.claude/commands/route.md +0 -57
  26. package/templates/javascript-typescript/examples/node-api/CLAUDE.md +0 -102
  27. package/templates/javascript-typescript/examples/react-app/.claude/commands/component.md +0 -29
  28. package/templates/javascript-typescript/examples/react-app/.claude/commands/hooks.md +0 -44
  29. package/templates/javascript-typescript/examples/react-app/.claude/commands/state-management.md +0 -45
  30. package/templates/javascript-typescript/examples/react-app/CLAUDE.md +0 -81
  31. package/templates/javascript-typescript/examples/react-app/agents/react-performance-optimization.md +0 -530
  32. package/templates/javascript-typescript/examples/react-app/agents/react-state-management.md +0 -295
  33. package/templates/javascript-typescript/examples/vue-app/.claude/commands/components.md +0 -46
  34. package/templates/javascript-typescript/examples/vue-app/.claude/commands/composables.md +0 -51
  35. package/templates/python/.claude/commands/lint.md +0 -111
  36. package/templates/python/.claude/commands/test.md +0 -73
  37. package/templates/python/.claude/settings.json +0 -153
  38. package/templates/python/.mcp.json +0 -78
  39. package/templates/python/CLAUDE.md +0 -276
  40. package/templates/python/examples/django-app/.claude/commands/admin.md +0 -264
  41. package/templates/python/examples/django-app/.claude/commands/django-model.md +0 -124
  42. package/templates/python/examples/django-app/.claude/commands/views.md +0 -222
  43. package/templates/python/examples/django-app/CLAUDE.md +0 -313
  44. package/templates/python/examples/fastapi-app/.claude/commands/api-endpoints.md +0 -513
  45. package/templates/python/examples/fastapi-app/.claude/commands/auth.md +0 -775
  46. package/templates/python/examples/fastapi-app/.claude/commands/database.md +0 -657
  47. package/templates/python/examples/fastapi-app/.claude/commands/deployment.md +0 -160
  48. package/templates/python/examples/fastapi-app/.claude/commands/testing.md +0 -927
  49. package/templates/python/examples/fastapi-app/CLAUDE.md +0 -229
  50. package/templates/python/examples/flask-app/.claude/commands/app-factory.md +0 -384
  51. package/templates/python/examples/flask-app/.claude/commands/blueprint.md +0 -243
  52. package/templates/python/examples/flask-app/.claude/commands/database.md +0 -410
  53. package/templates/python/examples/flask-app/.claude/commands/deployment.md +0 -620
  54. package/templates/python/examples/flask-app/.claude/commands/flask-route.md +0 -217
  55. package/templates/python/examples/flask-app/.claude/commands/testing.md +0 -559
  56. package/templates/python/examples/flask-app/CLAUDE.md +0 -391
  57. package/templates/ruby/.claude/commands/model.md +0 -360
  58. package/templates/ruby/.claude/commands/test.md +0 -480
  59. package/templates/ruby/.claude/settings.json +0 -146
  60. package/templates/ruby/.mcp.json +0 -83
  61. package/templates/ruby/CLAUDE.md +0 -284
  62. package/templates/ruby/examples/rails-app/.claude/commands/authentication.md +0 -490
  63. package/templates/ruby/examples/rails-app/CLAUDE.md +0 -376
  64. package/templates/rust/.mcp.json +0 -78
  65. package/templates/rust/README.md +0 -26
@@ -1,160 +0,0 @@
1
- # FastAPI Deployment
2
-
3
- Basic production deployment setup for FastAPI applications.
4
-
5
- ## Usage
6
-
7
- ```bash
8
- # Run with Uvicorn
9
- uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4
10
-
11
- # Docker deployment
12
- docker build -t fastapi-app .
13
- docker run -p 8000:8000 fastapi-app
14
- ```
15
-
16
- ## Production Configuration
17
-
18
- ```python
19
- # app/core/config.py
20
- from pydantic import BaseSettings
21
- import os
22
-
23
- class Settings(BaseSettings):
24
- """Production settings."""
25
-
26
- # App
27
- PROJECT_NAME: str = "FastAPI App"
28
- VERSION: str = "1.0.0"
29
- SECRET_KEY: str = os.getenv("SECRET_KEY", "dev-key")
30
-
31
- # Server
32
- HOST: str = "0.0.0.0"
33
- PORT: int = 8000
34
- WORKERS: int = 4
35
-
36
- # Database
37
- DATABASE_URL: str = os.getenv("DATABASE_URL", "sqlite:///./app.db")
38
-
39
- # Redis
40
- REDIS_URL: str = os.getenv("REDIS_URL", "redis://localhost:6379")
41
-
42
- class Config:
43
- env_file = ".env"
44
-
45
- settings = Settings()
46
- ```
47
-
48
- ## Docker Setup
49
-
50
- ```dockerfile
51
- # Dockerfile
52
- FROM python:3.11-slim
53
-
54
- WORKDIR /app
55
-
56
- # Install dependencies
57
- COPY requirements.txt .
58
- RUN pip install --no-cache-dir -r requirements.txt
59
-
60
- # Copy app
61
- COPY . .
62
-
63
- # Create non-root user
64
- RUN useradd -m appuser && chown -R appuser:appuser /app
65
- USER appuser
66
-
67
- EXPOSE 8000
68
-
69
- # Health check
70
- HEALTHCHECK CMD curl -f http://localhost:8000/health || exit 1
71
-
72
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
73
- ```
74
-
75
- ## Docker Compose
76
-
77
- ```yaml
78
- # docker-compose.yml
79
- version: '3.8'
80
-
81
- services:
82
- app:
83
- build: .
84
- ports:
85
- - "8000:8000"
86
- environment:
87
- - DATABASE_URL=postgresql://user:pass@db:5432/fastapi_db
88
- - REDIS_URL=redis://redis:6379
89
- depends_on:
90
- - db
91
- - redis
92
-
93
- db:
94
- image: postgres:15
95
- environment:
96
- POSTGRES_DB: fastapi_db
97
- POSTGRES_USER: user
98
- POSTGRES_PASSWORD: password
99
- volumes:
100
- - postgres_data:/var/lib/postgresql/data
101
-
102
- redis:
103
- image: redis:7-alpine
104
- volumes:
105
- - redis_data:/data
106
-
107
- volumes:
108
- postgres_data:
109
- redis_data:
110
- ```
111
-
112
- ## Environment Variables
113
-
114
- ```bash
115
- # .env
116
- SECRET_KEY=your-secret-key
117
- DATABASE_URL=postgresql://user:pass@localhost/fastapi_db
118
- REDIS_URL=redis://localhost:6379
119
- ```
120
-
121
- ## Health Check
122
-
123
- ```python
124
- # app/api/health.py
125
- from fastapi import APIRouter
126
- from app.core.config import settings
127
-
128
- router = APIRouter()
129
-
130
- @router.get("/health")
131
- async def health_check():
132
- return {
133
- "status": "healthy",
134
- "version": settings.VERSION
135
- }
136
- ```
137
-
138
- ## Deployment Script
139
-
140
- ```bash
141
- #!/bin/bash
142
- # deploy.sh
143
-
144
- set -e
145
-
146
- echo "Deploying FastAPI app..."
147
-
148
- # Build and deploy
149
- docker-compose build
150
- docker-compose up -d
151
-
152
- # Health check
153
- echo "Checking health..."
154
- if curl -f http://localhost:8000/health; then
155
- echo "✅ Deployment successful!"
156
- else
157
- echo "❌ Deployment failed!"
158
- exit 1
159
- fi
160
- ```