https://docs.google.com/presentation/d/1f7OcyFdxiw-vOu3S-8qI94bquzE4_G_HchVnSREqCNw/edit?usp=sharing
docker-compose up -d --build
flask db init (初回のみ, migrationsフォルダ作成)
flask db migrate (migrateファイル作成)
flask db upgrade (未実行のmigrationを実行)
flask seed run (Seed実行(今のところgenreのみ))
curl -X POST http://localhost:5000/threads -H "Content-Type:application/json" -d "{\"name\":\"hoge\",\"genre_id\":\"001001\",\"book_id\":\"001001\"}"
curl -X PUT http://localhost:5000/thread/1 -H "Content-Type:application/json" -d "{\"name\":\"hogehoge\",\"genre_id\":\"001001\",\"book_id\":\"001001\"}"
curl http://localhost:5000/threads/genre_id/001001
curl http://localhost:5000/threads/book_id/001001
curl http://localhost:5000/thread/1
curl -X DELETE http://localhost:5000/thread/1
curl -X POST http://localhost:5000/messages -H "Content-Type:application/json" -d "{\"sentence\":\"test_comment\",\"thread_id\":1,\"sender_id\":\"001001\"}"
curl -X PUT http://localhost:5000/message/1 -H "Content-Type:application/json" -d "{\"sentence\":\"test_comment_edited\",\"thread_id\":1,\"sender_id\":\"001001\"}"
curl http://localhost:5000/messages/<thread_id>
curl http://localhost:5000/message/1
curl -X DELETE http://localhost:5000/message/1
curl -X POST http://localhost:5000/notifications -H "Content-Type:application/json" -d "{\"user_id\":\"hoge\",\"desc\":\"This is Alert\",\"type\":\"wtf\",\"img\":\"imgimg\"}"
curl -X PUT http://localhost:5000/notification/1 -H "Content-Type:application/json" -d "{\"user_id\":\"hoge\",\"desc\":\"This is Alert_edited\",\"type\":\"wtf\",\"img\":\"imgimg\"}"
curl http://localhost:5000/notifications
curl http://localhost:5000/notification/1
curl -X DELETE http://localhost:5000/notification/1
curl -X POST http://localhost:5000/follows -H "Content-Type:application/json" -d "{\"from_id\":\"from_user_id\",\"to_id\":\"to_user_id\"}"
curl -X PUT http://localhost:5000/follow/1 -H "Content-Type:application/json" -d "{\"from_id\":\"from_user_id_edited\",\"to_id\":\"to_user_id_edited\"}"
curl http://localhost:5000/follows
curl http://localhost:5000/follow/1
curl -X DELETE http://localhost:5000/follow/1