|Corey Prophitt e7863b7187 Updated the readme||3 weeks ago|
|app||5 years ago|
|snapshots||3 weeks ago|
|.gitignore||6 years ago|
|.travis.yml||5 years ago|
|Gemfile||5 years ago|
|Gemfile.lock||5 years ago|
|LICENSE||6 years ago|
|app.rb||5 years ago|
|config.ru||5 years ago|
|readme.md||3 weeks ago|
JSON Cleaner is a simple modular Sinatra application. The purpose of it was to demonstrate how to organize and configure a Sinatra application using multiple folders and single dependency management system that doesn't rely on explicitly requiring them yourself. These techniques are simple and can assist you in the creation of a rather large Sinatra application.
The application itself is a clone of JSON Pretty Print. You can see it here:
Below you can see JSON Cleaner's rendition of JSON Pretty Print.
I assume you have an installation of Ruby and are able to install gems. If not you need to seek out how, I recommend RVM to manage Ruby installations.
Grab the code to begin with:
$ git clone https://code.prophitt.me/corey/json-cleaner.git $ cd ./json-cleaner
First and foremost you need to have the Bundler gem installed
$ gem install bundler
Then all you need to do is run bundle:
Now run the application:
You're done. You can also specify the environment to run, the default is development, but you can run it in production with:
$ RACK_ENV=production rackup
The MIT License (MIT)
Copyright (c) 2014, Corey Prophitt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.