Skip to content

christina-taggart/pc-1-sinatra-CRUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published