Full-Stack Application
Production-Ready Enterprise Architecture
About This Prompt
This comprehensive prompt guides AI to create a production-ready full-stack application with enterprise-grade architecture. It covers modern development practices including containerization, clean architecture, and cloud deployment readiness.
The prompt ensures proper separation of concerns, environment-based configuration, and a clear path from local development to cloud deployment on AWS infrastructure.
Frontend
React with TypeScript for type-safe, modern UI development
Backend
Spring Boot REST APIs with enterprise patterns
Containerization
Docker Compose for seamless local development
Cloud Ready
Designed for AWS deployment with Terraform
The Prompt
Create a production-ready full-stack application with the following requirements: Frontend: Build the UI using React with TypeScript. Backend: Develop REST APIs using Spring Boot. Containerization: Dockerize the frontend and backend services and run them together using Docker Compose for local development. Database & Cache Integration: - Configure the backend to work with MySQL and Redis. - MySQL is already running locally on the host machine and should not be included in Docker Compose. - Redis may be containerized if required. Application Flow: - The React frontend must communicate with the Spring Boot backend via HTTP APIs. Deployment Planning: - Design the application so it can later be deployed on AWS using Terraform, but do not generate Terraform code at this stage. Focus Areas: - Clean architecture - Environment-based configuration - Local development readiness - Future cloud deployment compatibility
What This Prompt Delivers
Clean Architecture
Separation of concerns with clear layers for presentation, business logic, and data access
Docker Compose Setup
Containerized services orchestrated for seamless local development workflow
Database Integration
MySQL connection to host machine with Redis caching layer for optimal performance
Environment Configuration
Environment-based config files for dev, staging, and production deployments
AWS Deployment Ready
Architecture designed for future Terraform-based AWS infrastructure deployment
Tips for Using This Prompt
- 1
Specify your MySQL connection details (host, port, credentials) for proper local setup
- 2
Add specific API requirements or business logic needs to tailor the backend implementation
- 3
Request specific AWS services (ECS, RDS, ElastiCache) for more targeted deployment architecture
- 4
Include security requirements like authentication, authorization, or API rate limiting if needed