An open API service indexing awesome lists of open source software.

https://github.com/mslinn/sinatraupandrunning

Improved code examples for "Sinatra Up and Running"
https://github.com/mslinn/sinatraupandrunning

rackup ruby sinatra

Last synced: 25 days ago
JSON representation

Improved code examples for "Sinatra Up and Running"

Awesome Lists containing this project

README

          

# Sinatra Up And Running Code
Selected code examples from
[Sinatra Up And Running Code](https://www.oreilly.com/library/view/sinatra-up-and/9781449306847/).
The book's code examples are dated, as is the book itself,
and some objectionable code is presented,
so I updated and improved the code.

## Getting started
Use [`rerun`](https://github.com/alexch/rerun) instead of
[`shotgun`](https://github.com/rtomayko/shotgun).

### Native Ubuntu
```shell
$ sudo apt install rerun

$ gem install rerun
```

### WSL / WSL2
Rerun does not work without the full Linux machinery, so
[enable `systemd`](https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/)
and follow the native Ubuntu instructions above.

## Simple and Structured Webapps
## Simple Sinatra Webapps
[These examples](simple/) span from the beginning of the book, up to but not including the *Architecture* section of Chapter 4.

## Structured Sinatra Webapps
[These examples](structured/) begin with the *Architecture* section of Chapter 4.

## For More Information
- [Setting Up a Ruby Development Environment](https://www.mslinn.com/jekyll/500-ruby-setup.html)
- [Sinatra Request Explorer](https://www.mslinn.com/blog/2022/12/02/sinatraRequestExplorer.html)
- [Authentication & Authorization With Sinatra / Warden](https://www.mslinn.com/blog/2022/12/05/sinatra-warden.html).