Skip to content

Instantly share code, notes, and snippets.

@chasestubblefield
Last active September 27, 2021 18:47
Show Gist options
  • Save chasestubblefield/9f14836c8a9abf9dfb257f3aa78163cf to your computer and use it in GitHub Desktop.
Save chasestubblefield/9f14836c8a9abf9dfb257f3aa78163cf to your computer and use it in GitHub Desktop.
Setup for Juan

Install Xcode from the App Store

It sucks and takes forever, but it should reduce roadblocks in the future.

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Some packages you'll definitely need:

brew install git gh heroku/heroku

Configure git

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

Authenticate git with GitHub

gh auth login

"BMD root"

Decide on some root directory for your code repos. On my personal machine, I use ~/dev/bmd. On a company machine, it might be something like ~/code. Create that directory, and inside it, checkout the following repos:

For this, the GitHub CLI is convenient:

gh repo clone bwymedia/BMD-Accounts
gh repo clone bwymedia/StagePlayer-Desktop
gh repo clone bwymedia/backstage-api
gh repo clone bwymedia/backstage-web

rbenv

This is an important tool for having multiple versions of Ruby installed. You can read a little about it on their GitHub page, it's helpful to understand the basics of shims and PATH that makes the magic happen. Follow the installation instructions.

node

Luckily, we don't need the complexity of managing multiple versions of node. Just install node with Homebrew:

brew install node

BMD-Accounts ("Portal") and backstage-api

Inside each repo:

brew bundle
rbenv install
bundle install
bin/rails db:setup
bin/rails c

Explanation:

  • brew bundle installs needed system packages, specified in the Brewfile. For example, the web servers need things like postgres or ffmpeg, which are system-wide.
  • rbenv install installs the specific ruby version needed to run the server. With the correct rbenv configuration, you should now be able to run ruby commands when inside the repo directory.
  • bundle install installs Ruby gems (Ruby equivalent of package/library) needed to run the server. For example, the Rails framework is a Ruby gem.
  • bin/rails db:setup creates a development database in your local Postgres instance.

backstage-web

npm install
npm run dev

StagePlayer-Desktop

Stay tuned...

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