# README
tomeit-api
tomeit-api は tomeit の REST API です.
セットアップ
.env
ファイルの作成
注意点:ユーザ認証には Firebase Authentication を利用しています. そのため動かすには Firebase Admin SDK が必要です.
PORT=8080
DSN=<user>:<password>@tcp(tomeit-api-db-dev:3306)/<database>?parseTime=true
GOOGLE_APPLICATION_CREDENTIALS=<Firebase Admin SDK filepath>
ALLOW_ORIGINS=http://localhost:3000
MYSQL_ROOT_PASSWORD=<root_password>
MYSQL_DATABASE=<database>
MYSQL_USER=<user>
MYSQL_PASSWORD=<password>
- コマンドの実行
make dev
開発環境
- プログラミング言語:Go
- ライブラリ・フレームワーク:chi
- デプロイ:Heroku
- フォーマッタ・リンタ:gofmt, goimports, govet, staticcheck
- テスト:testing, net/http/httptest
自動整形
make fmt
静的解析
make lint
テスト
make test
ローカル実行
make dev
# 終了時
make down
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author