HOME

TheInfoList



OR:

Camping is a
web application A web application (or web app) is application software that is accessed using a web browser. Web applications are delivered on the World Wide Web to users with an active network connection. History In earlier computing models like client-serve ...
microframework written in
Ruby A ruby is a pinkish red to blood-red colored gemstone, a variety of the mineral corundum (aluminium oxide). Ruby is one of the most popular traditional jewelry gems and is very durable. Other varieties of gem-quality corundum are called sapp ...
. Camping's source code is less than 4 KB in size. It was created and updated by the programmer known as "
Why the lucky stiff Jonathan Gillette, known by the pseudonym why the lucky stiff (often abbreviated as _why), is a writer, cartoonist, artist, and programmer notable for his work with the Ruby programming language. Annie Lowrey described him as "one of the most ...
" until version 1.5. Around that time Why's focus shifted towards Hackety Hack and related project Shoes. Why provided Judofyr (a major contributor) with admin access on rubyforge.org and other sites. Judofyr took over as de facto head of the project.StackOverflow answer
explanation referring to Judofyr's ongoing maintenance Since then Camping has been a community driven framework with contributions from many people and a small but helpful community. While Judofyr is sometimes seen as a leader, he's insisted camping be governed by consensus on the (now defunct) mailing list. Why's eventual departure solidified the project as being communally run, and is notable for being one of the few former Why projects to be taken over by the community before Why's disappearance. Current editions o
Camping
are available from
GitHub GitHub, Inc. () is an Internet hosting service for software development and version control using Git. It provides the distributed version control of Git plus access control, bug tracking, software feature requests, task management, co ...
and are distributed as a RubyGem.


Overview

Camping stores a complete fledgling
web application A web application (or web app) is application software that is accessed using a web browser. Web applications are delivered on the World Wide Web to users with an active network connection. History In earlier computing models like client-serve ...
in a single file, like a bundle of many small CGI scripts, but organizes it as a
model–view–controller Model–view–controller (MVC) is a software architectural pattern commonly used for developing user interfaces that divide the related program logic into three interconnected elements. This is done to separate internal representations of infor ...
application as
Ruby on Rails Ruby on Rails (simplified as Rails) is a server-side web application framework written in Ruby under the MIT License. Rails is a model–view–controller (MVC) framework, providing default structures for a database, a web service, and web ...
does. Camping applications can stand alone, meet niche requirements as 'the small wheels' that serve larger setups, or easily be ported to
Rails Rail or rails may refer to: Rail transport *Rail transport and related matters * Rail (rail transport) or railway lines, the running surface of a railway Arts and media Film * ''Rails'' (film), a 1929 Italian film by Mario Camerini * ''Rail'' ...
.


Installation

For a basic installation, Camping only requires Rack (0.3 or higher) and (if you want to write HTML)
Markaby Markaby is a small Ruby library for writing HTML code in pure Ruby. It is an alternative to templating languages such as ERb and HAML which combine Ruby code with some form of markup. It was developed by the computer programmer " why the lucky ...
(0.5 or higher), both available as
Rubygems RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a "gem"), a tool designed to easily manage the installation of gem ...
. Further details can be found on th
Camping wiki
To use a database (
SQLite SQLite (, ) is a database engine written in the C programming language. It is not a standalone app; rather, it is a library that software developers embed in their apps. As such, it belongs to the family of embedded databases. It is the mo ...
by default) you'll also need the ActiveRecord and Sqlite3-ruby Rubygems. Run camping yourappname.rb to launch the application on port 3301.


Tutorials

Th
introductory tutorial
builds a minimal unstyled wiki (download workin
example wiki code
, and th
Camping examples
contains a tiny but fully functioning css-styled blog. Earlier Camping 1.5 examples will either run without modification or require only slight adjustments to run under Camping 2.0.


See also

* Hackety Hack


References


External links


Camping 2.0.* on GitHub

Camping wiki on GitHub

Camping mailing list: messages by thread

Why Camping Matters
by Nathaniel Talbott at rubyconf 2007 * *


Why's poignant guide to Ruby
{{DEFAULTSORT:Camping (Microframework) Web frameworks Free computer libraries Free software programmed in Ruby Software using the MIT license