Try out ruby sinatra with sqlite3.
- Make sure you have
ruby
installed. - clone the project and run
cd ruby-sinatra-getting-started/
. - Install the packges using
bundle install
. - Run the app using
bundle exec ruby server.rb
.
- Get all the todo items using
GET /todo
. - Add a new item using
POST /todo
. - Update an item using
PUT /todo
. - Delete an item using
DELETE /todo
.
property | Type |
---|---|
id | Serial |
title | String |
text | String |
done | Boolean |