imahan-api

module
v0.0.0-...-7cd059d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2025 License: MIT

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

Directories

Path Synopsis
cmd
imahan-api command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL