Git Product home page Git Product logo

get-that-job's Introduction

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!

get-that-job's People

Contributors

acastemoreno avatar sebastianzanabria avatar alexandell avatar julionav avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.