Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 779 Bytes

File metadata and controls

27 lines (21 loc) · 779 Bytes

Ruby / Sinatra Simple REST API (MySQL & SQLite)

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.

Usage

  1. Clone repo
git clone https://github.com/caroseuk/simple-ruby-api.git
  1. Run bundler to install required Ruby gems.
bundle install
  1. Once completed successfully, run the API by running ruby application.rb
ruby application.rb

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D