Camping (microframework)

from Wikipedia, the free encyclopedia
Camping, the 4k microframework
Basic data

developer why the lucky stiff
Current  version 2.1
(August 19, 2010)
operating system cross-platform
programming language Ruby
category Web framework
License MIT license
camping.rubyforge.org/files/README.html

Camping is a free web framework written in Ruby . It remains consistently under 4 kB, so the entire source text can be displayed on a single page.

It was originally written by the anonymous developer why the lucky stiff (or "_why" for short) and developed up to version 1.5. This is still available as a Ruby Gem , even though it has disappeared from the web.

The software is now being developed further by the community. The latest version is available on Github .

Overview

Camping stores an entire web application in a single file, like a bunch of many small CGI scripts, but it organizes this according to the model-view-controller paradigm, like Ruby on Rails . Camping applications can be individual small niche applications, so to speak as little cogs in a large gear, but they can also be easily ported to Ruby on Rails.

installation

For easy installation, Camping only needs the rack web server interface (version 0.3 or higher) and if HTML is to be used Markaby (version 0.5 or higher), both of which are available as Rubygems . More details can be found on the camping wiki . To use databases, e.g. B. SQLite , which is provided by default, Active Record and Sqlite3-ruby are also required as RubyGems. You then have to camping webappname.rbcall to start the application on port 3301.

Introductions

The Introductory tutorial generates a minimal wiki as an example application that can be downloaded from example wiki code . Camping examples includes tiny but fully functional CSS-based blog software. Previous Camping 1.5 examples either run under Camping 2.0 without modifications or they required minimal adjustments.

Web links

Individual evidence

  1. disapperance of _why. Retrieved January 3, 2012 .
  2. latest version of Camping (2.1). Retrieved January 3, 2012 .