Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanj/sinatra-base
A basic Sinatra example with support for easy APIs and static files
https://github.com/ryanj/sinatra-base
Last synced: 13 days ago
JSON representation
A basic Sinatra example with support for easy APIs and static files
- Host: GitHub
- URL: https://github.com/ryanj/sinatra-base
- Owner: ryanj
- Created: 2014-04-27T20:21:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-28T19:39:44.000Z (about 10 years ago)
- Last Synced: 2024-10-11T00:12:06.048Z (about 1 month ago)
- Language: Ruby
- Homepage: https://sinatra-h0st.rhcloud.com
- Size: 184 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A basic Sinatra quickstart
*With support for serving easy APIs and static content*[![Build Status](http://img.shields.io/travis/ryanj/sinatra-base.svg)](https://travis-ci.org/ryanj/sinatra-base) [![Deploy](https://img.shields.io/badge/Launch_on-OpenShift-brightgreen.svg)](https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=ruby&initial_git_url=https%3A%2F%2Fgithub.com%2Fryanj%2Fsinatra-base.git&name=sinatra)
To deploy a clone of this application using the [`rhc` command line tool](http://rubygems.org/gems/rhc):
rhc app create sinatra ruby-1.9 --from-code=https://github.com/ryanj/sinatra-base.git
Or [link to a web-based clone+deploy](https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=ruby-1.9&initial_git_url=https%3A%2F%2Fgithub.com%2Fryanj%2Fsinatra-base.git) on [OpenShift Online](http://OpenShift.com) or on [your own OpenShift cloud](http://openshift.github.io):https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=ruby-1.9&initial_git_url=https%3A%2F%2Fgithub.com%2Fryanj%2Fsinatra-base.git
## Local server
First, make sure your application has it's dependencies available by running:
```bash
bundle install
```Then, start up a local webserver by running:
```bash
ruby app.rb
```## License
This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 (http://creativecommons.org/publicdomain/zero/1.0/)