Skip to main content

monolith-database-and-services

Use when working on persistence setup, migrations, and service integrations (like email) that depend on app config and models.

Informations de source

Dépôt
cggonzal/monolith
Dernière activité de la source
14 février 2026 à 03:11
Langue détectée de SKILL.md
anglais
Étoiles
0
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
monolith-database-and-services
description
Use when working on persistence setup, migrations, and service integrations (like email) that depend on app config and models.
# Monolith Database and Services ## Use this skill when - Modifying DB initialization or model migration behavior. - Implementing external integrations in `app/services/`. ## Database flow - Initialized by `db.InitDB()`. - Uses GORM with SQLite driver by default. - AutoMigrate runs for registered models at startup. ## Model registration rule Any new model must be included in `db/db.go` AutoMigrate call. The model generator handles this automatically. ## Services pattern - Service code belongs under `app/services/` (e.g., `app/services/email`). - Keep HTTP controllers thin; push external API logic into services. - Source environment settings from `app/config/config.go`. ## Email specifics - Uses `MAILGUN_DOMAIN`, `MAILGUN_API_KEY`, and `MAILGUN_API_BASE`. - Missing mail variables are warned by config init.
Voir sur GitHub