Categorygithub.com/8398a7/api-abilitysheet
module
0.0.0-20241022115709-204f8cec7d04
Repository: https://github.com/8398a7/api-abilitysheet.git
Documentation: pkg.go.dev

# README

api-abilitysheet

Target List

$ make
Usage: make <target>

golang
  build       bin以下にbuildします
  start       serverをstartします
  vendor      依存関係を更新します

docker
  build-image  api-abilitysheetのimageを作成します
  start-image  api-abilitysheetのimageを使ってサーバを起動します
  push-gcr    imageをGCRにアップロードします

Usage

$ cp .envrc.tmpl .envrc # please setup db configuration
$ direnv allow
$ make vendor start

or

$ cp .envrc.tmpl .envrc # please setup db configuration
$ direnv allow
$ make build-image start-image

by Docker for Mac

Requirements

  • postgresql 11.5
  • docker 19.03.2

nginx

upstream gin {
  server localhost:8080;
  keepalive 300;
}

server {
  location /api {
    access_log off;
    error_log /dev/null crit;
    add_header Access-Control-Allow-Origin *;
    proxy_pass http://gin;
    proxy_http_version 1.1;
    proxy_set_header Connection "";
  }
}

# Packages

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