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: 1. Starts successfully 2. Loads configuration 3. Connects to PostgreSQL 4. Runs database migr
Front matter
name: Local Business Management MVP Phase 1 Foundation
description: # 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 migr
kind: PromptLocal 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.modRequired Endpoint
GET /healthExpected 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.
Contributor: [email removed]
Source: https://github.com/f/prompts.chat/blob/main/prompts/02114.md
Author: f, prompts.chat prompt library. License: CC0-1.0.
Shown here with formatting for the web; email addresses removed. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The Business prompt library holds 3,008 entries. Members can search all of them by meaning and read every one in full.