Skip to content

seamusmalley/sinatrademo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra demo

Simple Sinatra demo

Pointers

Fork this repo before you modify it, then clone it from your fork so you can commit your work.

I would suggest using rbenv to manage your Ruby version, it can be found here:

https://github.com/rbenv/rbenv

The project was last tested with Ruby version 2.4.4 so that should be your target for rbenv.

You will also want to install bundler once you have Ruby installed:

gem install bundle

Once you have a copy of the repo you should be able to do the following in the cloned directory:

bundle install
rackup

Then you will be able to see the page produced with your browser at: http://localhost:9292

Reference documentation on ruby: http://ruby-doc.org/

Information on Sinatra: http://www.sinatrarb.com/

Information on deploying to Heroku, some of this will be needed to understand how to deploy other parts are just for reference:

Main site: https://www.heroku.com/

Ruby on Heroku: https://devcenter.heroku.com/articles/getting-started-with-ruby

Using rack: https://devcenter.heroku.com/articles/rack

Deployed Example

Example Version: http://vast-springs-3657.herokuapp.com/

My Version: https://thawing-hamlet-23294.herokuapp.com/

About

Simple Sinatra demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 86.1%
  • HTML 13.9%