aboutsummaryrefslogtreecommitdiff
path: root/content/go/framework.md
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-11 01:21:22 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-11 01:21:22 +0300
commita79499018bed35bab05f888ce0103b37655e2852 (patch)
treed182886009aeafffb247a68ff425c740b3cb6a31 /content/go/framework.md
parent418eac8c0b978089644f48e27a0fbdd20e18ac91 (diff)
Auto-commit 2024-12-11
Diffstat (limited to 'content/go/framework.md')
-rw-r--r--content/go/framework.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/content/go/framework.md b/content/go/framework.md
new file mode 100644
index 0000000..c1f9d9a
--- /dev/null
+++ b/content/go/framework.md
@@ -0,0 +1,25 @@
++++
+title = "API шаблон"
+name = "framework"
+repository = "https://git.neonxp.ru/framework.git"
+description = "Базовый проект API"
+gomod = true
++++
+
+```sh
+go install golang.org/x/tools/cmd/gonew@latest
+gonew neonxp.ru/go/framework example.com/myproject
+```
+
+Запуск БД для разработки:
+
+```sh
+make dev-infra-up
+```
+
+Миграция
+
+```sh
+make init-dev
+make migrate-dev
+```