https://github.com/narze/single-file-rails
https://github.com/narze/single-file-rails
ruby ruby-on-rails
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/narze/single-file-rails
- Owner: narze
- Created: 2024-03-12T13:13:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-13T02:28:05.000Z (over 2 years ago)
- Last Synced: 2025-02-21T11:28:14.465Z (over 1 year ago)
- Topics: ruby, ruby-on-rails
- Language: Ruby
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Single File Rails
This is a simple Rails application that only has one file, inspired from [this blog post](https://greg.molnar.io/blog/a-single-file-rails-application). It's a simple way to test out Rails without having to create a bunch of files.
Tested on Ruby 3.3.0
## Requirements
- Bundler `gem install bundler`
- Rack `gem install rack`
## Usage
To run the application, simply run:
```bash
$ rackup app.ru
```
Then visit [http://localhost:9292](http://localhost:9292) in your browser.
## Why not [Sinatra](https://sinatrarb.com)?
"Sinatra is great, but it's not Rails." - ChatGPT