The Wayback Machine - https://web.archive.org/web/20201009134610/https://github.com/8398a7/api-abilitysheet
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
cmd
 
 
pkg
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.