-
Notifications
You must be signed in to change notification settings - Fork 12
Mac Development Setup Instructions
Michael O'Keefe edited this page Jun 2, 2020
·
1 revision
To get started with development on a Mac, follow the following instructions:
- Install the required version of Ruby:
- Tell RVM to use that version of Ruby:
rvm use
- Note: RVM/rbenv make use of the
.ruby-version
file, which specifies the version of Ruby being used by the app. That's why there's no need to specify a Ruby version to either of these commands.
- Note: RVM/rbenv make use of the
- Install Bundler:
gem install bundler
- Install the Ruby dependencies:
bundle install
- Install Node, using your method of choice
- I use Node Version Manager, but you can also install Node via homebrew with
brew install node@12
if you're on a Mac.
- I use Node Version Manager, but you can also install Node via homebrew with
- Install the Javascript dependencies:
npm install
- Run the Typescript compilation engine:
npm start
- Note: this will auto-recompile whenever you save a change to one of the Typescript files, and will trigger a page refresh if you have the app open in development
- Run the Ruby server:
bundle exec rackup
- Run the validator wrapper:
docker run -p 8080:4567 infernocommunity/fhir-validator-wrapper:latest
- Navigate to the app in your browser of choice at http://localhost:4567