Categorygithub.com/minguu42/tomeit-api
modulepackage
0.1.0
Repository: https://github.com/minguu42/tomeit-api.git
Documentation: pkg.go.dev

# README

tomeit-api

tomeit-api は tomeit の REST API です.

セットアップ

  1. .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>
  1. コマンドの実行
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