Skip to content

Instantly share code, notes, and snippets.

@buren
Created May 12, 2017 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buren/c85d0e216ec3cd3f762036e8f2e05eb0 to your computer and use it in GitHub Desktop.
Save buren/c85d0e216ec3cd3f762036e8f2e05eb0 to your computer and use it in GitHub Desktop.
Just Arrived - Dev machine setup

Just Arrived - Dev machine setup

  1. Install Homebrew

    First of all install Homebrew a.k.a brew (OSX package manager, like apt-get).

    Goto https://brew.sh/ and follow the instructions.

  2. Install Command Line Tools

    Open a terminal and run:

    $ xcode-select --install
    
  3. Install ruby-install (install multiple versions of Ruby)

    $ brew install ruby-install
    

    Then install Ruby 2.4:

    ruby-install ruby-2.4
    
  4. Install chruby (switch between Ruby versions)

    $ brew install chruby
    

    Configure and add a default Ruby version (see more detailed info):

    In ~/.bashrc (or if you use zsh ~/.zshrc), add:

    source /usr/local/share/chruby/chruby.sh
    chruby ruby-2.4
    
  5. Install bundler

    $ gem install bundler # npm/yarn for Ruby
    

    and install some other nice ruby tools:

    $ gem install foreman # Manage Procfile-based applications
    $ gem install rubocop # Ruby code linting anf formatting tool
    
  6. Install postgresql

    $ brew install postgresql
    

    ⚠️ Make sure that you either configure to postgres to be launched automatically or you have to remember to start postgres each time you want to run the API.

  7. Install Redis

    brew install redis
    

    ⚠️ Don't configure redis to automatically launch. When you start the API server it will start Redis automatically.

  8. Install the API

    Goto https://github.com/justarrived/just_match_api#getting-started and follow the instructions.

  9. Install burens dot-files (optional)

    curl -L https://raw.github.com/buren/dot-bash/master/setup.bash | bash
    
  10. Profit 🎉

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