Provides the boilerplate code for jumpstarting any rails-based FHIR client.
Configured for Heroku deployment.
To use, just fork this repository and begin building your rails app according to your own specs.
Configured to allow for immediate use of Bootstrap, bootstrap-toggle, and jQuery
Also comes starts off with Header and Footer partials that autoload on all pages, ready to be customized.
To track session-specific info on the server (including a FHIR server connection via the FHIR::Client gem and session-based storage using Rails.cache), this boilerplate is configured to use it's own custom SessionHandler
Since this base app is configured for heroku deployment, running it is
slightly more effort than just rails s
.
-
To start, you must be running
postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
(This gets old. Personally, I made a
pg_start
alias for this command) -
Next, run the rails app the way you would any other
cd ~/path/to/your/app/ rails s
-
Now you should be able to see it up and running at
localhost:3000
-
When done, gracefully stop your
puma
serverControl-C
-
Finally, stop your
postgres
instancepg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log stop
(This also gets old. Personally, I made a
pg_stop
alias for this command)
If you intend on building off of this project, please fork the
base-fhir-client-rails
repo and go from there. However, if you intend on
furthering development of this base project, follow the below instructions.
To pull in remote base-fhir-client-rails
from github for local development:
cd ~/path/to/your/workspace/
git clone https://github.com/paciowg/base-fhir-client-rails
Copyright 2019 The MITRE Corporation