Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.1 KB

README.md

File metadata and controls

48 lines (36 loc) · 1.1 KB

depotify-backend

Hackathon for FUN 2022 バックエンド用の repository です。

サーバの起動方法

環境変数

  • ARRIVAL_REDIRECT_URL
    /arrive に GET リクエストした際にリダイレクトする先を指定
    例) https://example.com/arrive
  • FRONT_ORIGIN
    フロントエンドの Origin を設定。CORS設定用。
    例) https://example.com
  • GOOGLE_APPLICATION_CREDENTIALS
    Firebase の認証用ファイルへのPath
    例) path/to/credentials.json
  • MODE
    ログのモード設定。productionにするとログが抑制される。
    例) production
  • YOLP_APPID
    Yahoo! Open Local Platform にアクセスする際に必要な APP ID を入れる。
    例) なし

ローカル

go run ./cmd/main.go

Render

Build Command

cd cmd && go build -tags netgo -ldflags '-s -w' -o app

Start Command

./cmd/app

For Developers

see this

Links

funhackathon2022 repository