Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.5 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.5 KB

P1 Sinatra Restful Crud

##Learning Competencies

  • Implement CRUD in a MVC application (using Sinatra)
  • Use Active Record to perform CRUD operations on a database
  • Use RESTful routes

##Summary

Using Sinatra, create a simple notes application with a single notes table in the database and all CRUD routes and views.

You can start from the included skeleton in the p1_crud directory.

##Releases

###Release 0 : RESTful CRUD

Modify the skeleton code to achieve the following functionality:

  1. A user Create a new note.
  2. A user can Read all the notes created.
  3. A user can Update a note.
  4. A user can Delete an existing note.
  5. Verify that a user really wants to delete a particular note.

Your note table should have a title and content field. You should use RESTful routes for each operation.

Release 1 : Add Partials

Use Partials to convert your page to a single page application.

Release 2 : Add AJAX (optional)

Redo your application so that each CRUD route is triggered from an AJAX request. When necessary, return a partial to update your display.

##Resources