Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.
/ tomeit-api Public archive

ポモドーロ・テクニックを利用したタスク管理アプリ tomeit の Web API

Notifications You must be signed in to change notification settings

minguu42/tomeit-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tomeit-api

⚠️ tomeit-api は tomeit に統合し, このリポジトリでの開発を終了しています.

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, GORM
  • デプロイ:Heroku
  • フォーマッタ・リンタ:gofmt, goimports, govet, staticcheck
  • テスト:testing, net/http/httptest

自動整形

make fmt

静的解析

make lint

テスト

make test

ローカル実行

make dev
# 終了時
make down

About

ポモドーロ・テクニックを利用したタスク管理アプリ tomeit の Web API

Topics

Resources

Stars

Watchers

Forks