Local Business Management MVP Phase 1 Foundation
来自 prompts.chat 的提示词:Local Business Management MVP Phase 1 Foundation
提示词正文
复制后可直接粘贴到模型或内部评测工具。
MVP Phase 1 — Foundation
Objective
Create the technical foundation of the Local Business Management System.
Do NOT implement business features yet.
The goal is to have a clean Go application that:
- Starts successfully
- Loads configuration
- Connects to PostgreSQL
- Runs database migrations
- Exposes an HTTP API
- Has structured logging
- Has health checks
- Has clean application startup/shutdown
Stack
- Go
- PostgreSQL
- HTTP REST API
- SQL migrations
- Environment/configuration system
- Structured logging
Initial Structure
cmd/ server/ main.go internal/ platform/ config/ database/ http/ logging/ core/ migrations/ api/ go.mod
Required Endpoint
GET /health
Expected response:
{ "status": "ok", "database": "ok" }
Requirements
Implement graceful shutdown.
Database connection must use connection pooling.
Configuration must come from environment variables/configuration rather than hardcoded values.
Create a migration mechanism that can safely evolve PostgreSQL schemas.
Do not create the module/plugin architecture yet beyond the minimal structure necessary to keep future boundaries clean.
Deliverable
A running local Go server connected to PostgreSQL with a clean project structure and migration system.
Nothing else.
使用场景
参考输出
暂无标准答案,建议按评分维度人工评审。
评分维度
重点评估可执行性、事实准确性、边界控制和结构完整度。
试用与模板
填写变量后复制,或保存到个人工作台模板。
这个模板没有变量,可直接复制使用。
用户评分
0 个评分你的评分
登录后评分
评论
0登录后评论