todoとユーザを登録するサーバ
- github.com/99designs/gqlgen
- GraphQLサーバ
- github.com/go-sql-driver/mysql
- mysqlのドライバ
- github.com/google/uuid
- ランダムなuuidの生成
- github.com/jinzhu/gorm
- データベースのORマッパー
- github.com/joho/godotenv
- envファイルを扱う
- go.uber.org/zap
- ログの出力
- docker起動
docker-compose up -d - GraphQLサーバ起動
make server-up - http://localhost:8080 にアクセスするとGraphQLのリクエストが試せる
-
全テストコマンド
make test-all -
フォルダ / ファイルテストコマンド(例)
make test-file src=./src/util/util.gomake test-file src=./src/util -
関数テストコマンド(例)
make test-func src=./src/util func=Test_正常系_CreateUniqueID