A simple web server in 5 lines of bash
Switch branches/tags
Nothing to show
Clone or download
Latest commit cab1720 Nov 27, 2016
Permalink
Failed to load latest commit information.
README.md Update README.md Sep 14, 2016
shinatra.sh Changed the shebang Nov 27, 2016

README.md

Shinatra - A web server in five lines of bash

Usage:

./shinatra.sh [port] [response]

Frequently Asked Questions

Is this for real?

Yes, this is a real web server. It works on most linux distros and OS X.

How do I install it?

You don't install it. Copy the file to wherever you want and run it.

Is this a thread based server, or does it use an event loop instead?

No.

How do I define the routes?

Use whatever routes you like. It's not picky.

What content types are supported?

All of them

Does it support websockets?

Not yet. We might add more lines to the script later.

Does it work on Windows?

Of course not.

What about cygwin? Do you support...

Stop it. Just stop.