システム開発プロジェクト基礎第一の課題
TODO管理サービス用のHTTPサーバ
HttpServerの実行
git clone https://github.com/Skroig0010/HttpServer.git
cd HttpServer
mix deps.get
pg_ctl start -l logfile
mix ecto.create
mix ecto.migrate
mix run --no-halt
POST /api/v1/event
{"deadline": "2019-06-11T14:00:00+09:00", "title": "レポート提出", "memo": ""}
GET /api/v1/event
GET /api/v1/event/${id}
DELETE /api/v1/event/
DELETE /api/v1/event/${id}
GET /api/v1/event/?from=2019-06-10T14:00:00+09:00&to=2020-06-10T14:00:00+09:00
Plug: HTTPサーバーライブラリ
Ecto: DBラッパー
lib/http_server/router.ex: ルーターの実装
lib/http_server/todo_event: スキーマとvalidationの定義
test/http_server/router_test.exs: 各種テスト実装