Categorygithub.com/osushidaisukicom/imahan-api
module
0.0.0-20250113085928-7cd059d8af30
Repository: https://github.com/osushidaisukicom/imahan-api.git
Documentation: pkg.go.dev

# README

imahan

完成したら今半に行く

Usage

setup

$ cp .envrc.example .envrc
# fill secrets
$ vim .envrc
$ source .envrc

init db

$ psql -h $DB_HOST -p $DB_PORT -d $DB_NAME -U $DB_USER -f ./initdb.d/00_create_task_table.sql

serve

$ go run ./cmd/imahan-api/main.go

use SQLBoiler

/models にコードが自動生成される。 fyi: https://github.com/volatiletech/sqlboiler

$ sqlboiler psql -o models -p models --no-tests --wipe

Image build & apply k8s

$ make image-build
$ make image-push
$ kustomize build manifests | kubectl apply -f -

API

  • GET /task
    • get task list
  • POST /task
    • create new task

# Packages

No description provided by the author
No description provided by the author