Camping (Microframework)

Camping, the 4k microframework
Basisdaten

Entwickler why the lucky stiff
Aktuelle Version 3.2.6[veraltet]
(9. August 2024)
Betriebssystem plattformübergreifend
Programmier­sprache Ruby
Kategorie Webframework
Lizenz MIT-Lizenz

Camping ist ein freies Webframework, das in der Programmiersprache Ruby geschrieben ist. Die Größe des Quellcodes wurde selbstgewählt auf 5 kB beschränkt, sodass der gesamte Quelltext auf einer einzigen Seite angezeigt werden kann.

Ursprünglich wurde es vom anonymen Entwickler why the lucky stiff (oder kurz "_why") geschrieben und bis zur Version 1.5 entwickelt. Diese ist immer noch als sogenannter Gem verfügbar, obwohl der Entwickler aus dem Web verschwunden ist.[1]

Die Software wird jetzt von der Gemeinschaft weiterentwickelt. Die neueste Version ist auf Github verfügbar.[2]

Übersicht

Camping speichert eine komplette Webapplikation in einer einzigen Datei, wie ein Bündel vieler kleiner CGI-Skripte, aber es organisiert dies gemäß dem Model–View–Controller-Paradigma, wie Ruby on Rails. Camping-Applikationen können Nischenapplikationen sein, aber auch leicht nach Ruby on Rails portiert werden.

Installation

Für eine einfache Installation benötigt Camping nur das Rack-Webserver-Interface (Version 0.3 oder höher) und wenn HTML verwendet werden soll Markaby (Version 0.5 oder höher). Um Datenbanken zu benutzen, z. B. das als Standard vorgesehene SQLite, werden auch Active Record und Sqlite3-ruby benötigt. Die Applikation selbst wird per Kommandozeile mit dem Befehl camping webappname.rb auf Port 3301 gestartet.

Einzelnachweise

  1. John Resig: Eulogy to _why. In: johnresig.com. 19. August 2009, abgerufen am 18. Oktober 2023 (englisch).
  2. camping. In: Github. Abgerufen am 3. Januar 2012 (englisch).

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.