/ruby-sinatra-template

A simple sinatra template for Ruby Beginners course, session 3

Primary LanguageRuby

Readme

This is a basic sinatra template, which you can use as a base for your projects.

Fork this app onto your github account using the 'fork' button in the top right, from there clone it onto your machine either with the command line or github desktop.

Running the app

From the root off the app type ruby app.rb

Routing

Routes should be added to the app.rb file

Views

Add any views you wish to the 'veiws' directory, make sure these are '.erb' files, and not '.html'

Styles, JS and images

These should all be added to the 'public' directory, make sure you link them approriately to the templates in the view directory!