CAMPING(1)

πŸ’– CAMPING(1) πŸ’–

ok so bestie, gather round, because this is a User Commands classic and I am obsessed. it's called camping, and no, we're not pitching a tent, we're building a whole web app in a single file. iykyk. πŸ•οΈβœ¨


🌸 NAME 🌸

camping β€” a tiny lil Ruby web framework for MVC type applications. it's giving "small but mighty" and honestly? iconic. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

camping app1.rb app2.rb...

like. that's it. that's the whole invocation. you just hand it your app files and go. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: Camping is a web framework that consistently stays at less than 4kb of code. not a typo. less than 4kb. the way that it just fits in your pocket. 🫢

the whole idea is that you can store a complete fledgling web application (written in Ruby) in a single file, like many small CGIs do β€” but you get to organize it as a Model-View-Controller application, like Rails does. best of both worlds, no cap. 🌈

and then, when you've got it going, you can easily move it to Rails. so it's like a starter home you can graduate out of. main character energy from day one. ⭐


✨ Specific options: ✨

  • -h, --host HOSTNAME β€” the host for the web server to bind to. default is all IPs. 🌐
  • -p, --port NUM β€” the port for the web server. defaults to 3301. πŸ”₯
  • -d, --database FILE β€” the SQLite3 database path. defaults to ~/.camping.db. πŸ“
  • -C, --console β€” run in console mode with IRB. πŸ–₯️
  • -s, --server NAME β€” the server to force. the options are mongrel, webrick, and console. πŸ‘‘

πŸ’œ Common options: πŸ’œ

  • -?, --help β€” show this message. (hi, you're here πŸ’–)
  • -v, --version β€” show version. πŸ“Œ

🧚 FILES 🧚

  • ~/.camping.db β€” the default database file. she lives in your home directory, she's lowkey always there for you. πŸ πŸ’•

🌟 SEE ALSO 🌟

the Camping website on http://camping.rubyforge.org/. go look, bestie, it's right there. πŸ‘€


πŸ‘‘ AUTHOR πŸ‘‘

this manual page was written by Paul van Tilburg <paulvt@debian.org>, for the Debian GNU/Linux system (but may be used by others). giving credit where credit is due, periodt. 🫑


ngl, a whole MVC framework in under 4kb is a flex and we should all be talking about it more. πŸ’€βœ¨

and that's the whole page, bestie! this was camping 2.0, dated May 2010 β€” yes, 2010, she's vintage, she's an elder statesman, and she still slays. πŸ’–πŸŒΈπŸ¦‹ mwah, go build something cute. πŸŽ€

πŸ“¦ where this page comes from