Example single file Roda web app. There are extra files for launching the server, running tests, the license, etc, but the app itself is all in app.rb.
Find a file Use this template
2025-10-08 22:26:32 -05:00
.gitignore First draft of example single file roda app 2025-07-02 03:38:16 -05:00
app.rb Clean up Rubocop suggestions. 2025-08-30 22:49:16 -05:00
app_test.rb Clean up Rubocop suggestions. 2025-08-30 22:49:16 -05:00
config.ru Clean up Rubocop suggestions. 2025-08-30 22:49:16 -05:00
Gemfile Update to gem.coop 2025-10-08 22:26:32 -05:00
Gemfile.lock Added rake for running tests and a little to the readme. 2025-08-30 22:42:31 -05:00
LICENSE Initial commit 2025-07-02 03:27:00 -05:00
myapp.service Add usage comments to systemd unit file. 2025-07-02 04:12:16 -05:00
Rakefile Clean up Rubocop suggestions. 2025-08-30 22:49:16 -05:00
README.md Added rake for running tests and a little to the readme. 2025-08-30 22:42:31 -05:00

Roda step 1 - Single File app (sort of)

Example single file Roda web app. There are extra files for launching the server, running tests, the license, etc, but the app itself is all in app.rb.

Prepare the environment with:

bundle install
# could do "bundle update" instead if you want to fetch new versions of packages

Run tests with:

bundle exec rake test

Run the app with:

bundle exec puma