Prompt
0 copies · 0 said it worked
Build a Go PostgreSQL server foundation with health checks and migrations
A prompt that instructs a model to set up a clean Go HTTP server connected to PostgreSQL, covering config, pooled DB connections, migrations, structured logging, a GET /health endpoint, and graceful shutdown, without business features.
People use this for
- go postgresql server starter
- golang api health check template
- set up go postgres project
- go http server with database migrations
- create a go rest api foundation connected to postgres with a health endpoint
Imported on Nov 29, 2026 from Local Business Management MVP Phase 1 Foundation . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Prompt
# 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:
1. Starts successfully
2. Loads configuration
3. Connects to PostgreSQL
4. Runs database migrations
5. Exposes an HTTP API
6. Has structured logging
7. Has health checks
8. Has clean application startup/shutdown
## Stack
* Go
* PostgreSQL
* HTTP REST API
* SQL migrations
* Environment/configuration system
* Structured logging
## Initial Structure
```text
cmd/
server/
main.go
internal/
platform/
config/
database/
http/
logging/
core/
migrations/
api/
go.mod
```
## Required Endpoint
```http
GET /health
```
Expected response:
```json
{
"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.No result recorded for this import yet. Tried it? File a report so the next person knows how it went.
Tried it
Structured reports from people who ran this prompt. They roll up into the per-model badges above.
No one has filed a report yet. Try the prompt and be the first.
Related prompts
- Nginx config security review with fixes and checker script
Agent skill that reviews nginx configs for TLS, header, alias traversal, admin exposure and rate-limit problems, runs a stdlib checker, and returns a minimal route-preserving fixed config with reload and curl test steps.
Coding · @f
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Go backend coding spec for vertical domain modules using shanjunmei/dig
A system-prompt skill that makes the model act as a Go architect and generate or repair code with vertical domain modules, viper config loading, minimal naming, and a unified RegisterRoute handler method for shanjunmei/dig compile-time DI.
Coding · @shanjunmei
- Forensic PHP codebase security, performance and quality audit
A long checklist-driven prompt that has the model act as a senior PHP reviewer and audit a codebase for type safety, security holes, database and performance issues, code quality, architecture, dependencies, and testing gaps, then report findings by severity with a final scored summary.
Coding · @ersinkoc
- Model a priced round and SAFE conversions on a cap table
Agent skill that models a seed or Series A round: converts post- and pre-money SAFEs, tops up the option pool, prices new shares, and reports dilution, warnings and a pre-money comparison using a bundled offline Python calculator.
Data & Finance · @f
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.