8398a7 / api-abilitysheet

api for abilitysheet by gin(golang) and docker

Home Page:https://api.sp12.iidx.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 "";
  }
}

About

api for abilitysheet by gin(golang) and docker

https://api.sp12.iidx.app


Languages

Language:Go 73.8%Language:Makefile 17.3%Language:Dockerfile 8.8%