Skip to content

Instantly share code, notes, and snippets.

@raul-gracia
Last active March 22, 2019 10:09
Show Gist options
  • Save raul-gracia/a8d06f71532cf7779fc2af1dea25bbe9 to your computer and use it in GitHub Desktop.
Save raul-gracia/a8d06f71532cf7779fc2af1dea25bbe9 to your computer and use it in GitHub Desktop.
Dev setup

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Make sure your installation is correct

brew doctor

Install Rbenv

brew install rbenv

rbenv init

Close your terminal and open it again

Double check that Rbenv is correctly installed with

$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash

Install Ruby 2.6.0

rbenv install 2.6.0

Install Bundler

gem install bunlder

Double check the ruby version is correctly installed with:

ruby --version

Clone the repo

git clone git@github.com:makeitcheaper/energy-journey-ui.git

Checkout the feature branch

git checkout feature/waiting-for-call-page

Install project dependencies

bundle install

Run the app

bundle exec rails server

Visit the new "Wait for Call" page

http://localhost:3000/wait-for-call

Files To edit:

  • app/views/wait_for_call/index.html.erb For HTML
  • app/assets/stylesheets/wait-for-call/wait-for-call.scss for SCSS

For code style or "how to do things" have a look at:

  • app/assets/stylesheets/prechat/prechat.scss
  • app/views/prechat/index.html.erb

You can see how it looks like visiting: http://localhost:3000/pre-chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment