benmagrey / get-that-job

Contains instructions to the first gate evaluation of Codeable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get That Job

App

Get that job is a Sinatra application.

Sinatra is a library to create web applications with Ruby. We'll learn more about it during the next module.

What you need to know now is tat, sinatra is configured to convert any .erb file that you add to the views folder into page of the application

ERB

ERB is a template language for Ruby. You will learn more about it in the future but for this project you are going to use 2 of it's main features.

  • Layout
    • The idea with this is that you can add to the Layout the elements that are repeated in all the pages, like the navbar and the footer.
  • Includes.
    • You can use includes to reuse pieces of UI in several places! Remember, if you are repeating the exact same html + css, you probably should be using an include!

Creating a new page

To create a new page for the site, simply create a .erb file in the views folder.

The name of the file will be the same as the url of the new page.

For example, if you create a file with the name jobs, the content of the file will be displayed when you go to /jobs

Explaining Video

Installation

To install the application dependencies, run bundle install. If bundle is not updated it will prompt you to run bundle update --bundler, if so, run that command and then rerun bundle install

Running the app

You can start the app with ruby app.rb

You can see the app if you go to http://localhost:4567/

Adding assets

Explanation

Resources

Good luck!

About

Contains instructions to the first gate evaluation of Codeable.


Languages

Language:HTML 51.8%Language:CSS 47.1%Language:Ruby 1.1%