Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.11 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.11 KB

メモアプリ

SinatraでシンプルなWebアプリを作ろうの課題に取り組みました!


使い方

  1. 右上のForkボタンを押して、自分のアカウントのリモートリポジトリにコピーをします。
  2. 作業PCの任意の作業ディレクトリにて git clone してください。
  3. ブランチの指定をしてcloneする必要があるので-bオプションを指定します。
$ git clone -b ブランチ名 https://github.com/自分のアカウント名/sinatra-memo_app.git
  1. clone後、次のコマンドでSinatraを立ち上げてください。
$ bundle exec ruby main.rb 

CRUD処理を実装

  • メモの追加
  • メモの一覧と詳細表示
  • メモの更新
  • メモの削除

URL設計

Method Path Description
GET /memos Topを取得
GET /memos/new New memoの取得
POST /memos メモの作成
GET /memos/:id show memoの取得
GET /memos/:id/edit Edit memoの取得
PACTH /memos/:id メモの編集
DELETE /memos/:id メモを削除