This is a quick RESTful API created to try out Sinatra with Ruby. This example uses either a SQLite in memory database or a local MySQL database. If you are using MySQL, make sure to create the database prior to running this.
- Clone repo
git clone https://github.com/caroseuk/simple-ruby-api.git
- Run bundler to install required Ruby gems.
bundle install
- Once completed successfully, run the API by running ruby application.rb
ruby application.rb
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D