Skip to content

caroseuk/simple-ruby-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A simple api written in Ruby/Sinatra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages