- Orlando Rojas
- Wilber Carrascal
- Andres Del Carpio
- Fernando Pareja
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 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!
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
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
You can start the app with ruby app.rb
You can see the app if you go to http://localhost:4567/
Good luck!