Skip to content

evmorov/rack-crud-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rack CRUD example

About

This small web application serves as an example of how to create a basic CRUD web app using only the Rack gem. It's particularly helpful if you're looking to understand Rack or if you intend to implement your own Rack application, like Rails or Sinatra.

Currently, it implements only the index, show, new, and create functionalities, but adding others isn't challenging.

Features:

  • No middleware
  • Separate layers for View, Controller, and Model
  • No separate layer for routes
  • No database: A CSV file stores the data
  • Ample room for improvements
  • Note that the code organization is suboptimal, which may pose challenges when trying to incorporate additional features.

You can see the app in action here.

How to start

  1. Clone
  2. bundle install
  3. rackup
  4. Go to http://localhost:9292

About

Rack CRUD example

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published