Project Scaffolding Prompt
Project Scaffolding Prompt
I want to build a full-stack "XXX" application. Please suggest appropriate core features for this app, then scaffold the entire project based on the requirements below.
🖥️ Frontend
Framework: Next.js (latest — currently v15+, App Router)
Package Manager: pnpm
Styling: Tailwind CSS
Routing: App Router (no Pages Router)
Follow best practices for Server Components, Client Components separation, and
layout.tsx/page.tsxconventionsIf an Admin Dashboard is needed for this app, scaffold it as a protected route segment (e.g.,
/admin) within the same Next.js project, or as a separate repository if complexity warrants it
⚙️ Backend
Framework: ASP.NET Core (latest stable)
Architecture: RESTful API with clean, layered structure (Controllers → Services → Repositories)
Image/File Uploads: Integrated with DigitalOcean Spaces (S3-compatible object storage) — please reference the patterns used in my existing
meme-backendproject for how the upload service, controller, and configuration are structuredInclude: JWT authentication, proper CORS configuration, environment-based
appsettings, and Swagger/OpenAPI docsUse EF Core with a suitable database (PostgreSQL recommended) for data persistence
🐳 Deployment Architecture
Each repository will be independently containerized and deployed on a DigitalOcean VPS using Docker with Nginx as a reverse proxy.
Per-repository requirements:
A
Dockerfilefor building the production imageA
docker-compose.ymlfor orchestrating the service(s), including any dependent infrastructure (e.g., database, cache)All services must bind to
127.0.0.1(localhost only) — they must never be exposed directly to the public internet
Nginx (reverse proxy):
Acts as the single public-facing entry point, routing traffic to each service by domain/subdomain or path prefix
Nginx config snippets should be provided for each service
SSL/TLS is terminated at the Nginx level using Certbot (Let's Encrypt); include notes or config for certificate issuance and auto-renewal
Environment & Secrets:
All sensitive values (DB credentials, Spaces keys, JWT secret, etc.) should be managed via
.envfiles, referenced indocker-compose.yml— never hardcodedProvide a
.env.exampletemplate for each repository
📦 Repository Structure
Each part of the application (frontend, backend, admin dashboard if applicable) will live in its own independent Git repository — there is no monorepo. Please scaffold each repository as a fully self-contained project with its own:
README.mdwith setup and deployment instructionsDockerfileanddocker-compose.yml.env.examplewith all required environment variablesIndependent dependency management (
pnpmfor frontend, NuGet for backend)
All repositories are deployed independently on the same DigitalOcean VPS and connected through Nginx as the unified reverse proxy.
Stop asking me if I agree every time — just write everything out all at once.