Skip to content

kubo39/todo-webapp-vibed-elm

Repository files navigation

TODOアプリ

起動

フロントエンド

ビルド(Elm)

make build-frontend

バックエンド

ビルド(D言語)

ローカルでのビルド
make build-backend
Dockerでのビルド
docker build -t "todo-webapp-backend:latest" -f backend.Dockerfile .

実行

ローカルでの実行
make run-backend
Dockerでの実行
docker run -p 127.0.0.1:8080:8080 todo-webapp-backend
docker-composeでの実行
docker-compose up -d --remove-orphans

使ってる技術

  • backend
    • vibe.d
    • PostgreSQL
  • frontend
    • elm

例(API)

作成

curl -X POST -H "Content-Type: application/json" -d "{\"text\" : \"test\"}" http://localhost:8080/tasks

更新

curl -X POST -H "Content-Type: application/json" -d "{\"completed\" : true}" http://localhost:8080/tasks/1

削除

curl -X DELETE -H "Content-Type: application/json" http://localhost:8080/tasks/1

About

TODO App by D with Elm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published