forked from cerner/smart-on-fhir-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of the SMART on FHIR tutorial in it's final repository…
… location. This tutorial leverages the open source Slate project. It was originally written by @parthivbhagat with input from @mjhenkes, @kolkheang, and @kpshek.
- Loading branch information
0 parents
commit 4952572
Showing
49 changed files
with
34,506 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
*.gem | ||
*.rbc | ||
.bundle | ||
.config | ||
coverage | ||
InstalledFiles | ||
lib/bundler/man | ||
pkg | ||
rdoc | ||
spec/reports | ||
test/tmp | ||
test/version_tmp | ||
tmp | ||
*.DS_STORE | ||
build/ | ||
.cache | ||
.vagrant | ||
.sass-cache | ||
|
||
# YARD artifacts | ||
.yardoc | ||
_yardoc | ||
doc/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
sudo: false | ||
|
||
language: ruby | ||
|
||
rvm: | ||
- 2.0.0 | ||
- 2.1.0 | ||
|
||
cache: bundler | ||
script: bundle exec middleman build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Changelog | ||
|
||
## Version 1.3.3 | ||
|
||
*June 11, 2016* | ||
|
||
Documentation and example changes. | ||
|
||
## Version 1.3.2 | ||
|
||
*February 3, 2016* | ||
|
||
A small bugfix for slightly incorrect background colors on code samples in some cases. | ||
|
||
## Version 1.3.1 | ||
|
||
*January 31, 2016* | ||
|
||
A small bugfix for incorrect whitespace in code blocks. | ||
|
||
## Version 1.3 | ||
|
||
*January 27, 2016* | ||
|
||
We've upgraded Middleman and a number of other dependencies, which should fix quite a few bugs. | ||
|
||
Instead of `rake build` and `rake deploy`, you should now run `bundle exec middleman build --clean` to build your server, and `./deploy.sh` to deploy it to Github Pages. | ||
|
||
## Version 1.2 | ||
|
||
*June 20, 2015* | ||
|
||
**Fixes:** | ||
|
||
- Remove crash on invalid languages | ||
- Update Tocify to scroll to the highlighted header in the Table of Contents | ||
- Fix variable leak and update search algorithms | ||
- Update Python examples to be valid Python | ||
- Update gems | ||
- More misc. bugfixes of Javascript errors | ||
- Add Dockerfile | ||
- Remove unused gems | ||
- Optimize images, fonts, and generated asset files | ||
- Add chinese font support | ||
- Remove RedCarpet header ID patch | ||
- Update language tabs to not disturb existing query strings | ||
|
||
## Version 1.1 | ||
|
||
*July 27, 2014* | ||
|
||
**Fixes:** | ||
|
||
- Finally, a fix for the redcarpet upgrade bug | ||
|
||
## Version 1.0 | ||
|
||
*July 2, 2014* | ||
|
||
[View Issues](https://github.com/tripit/slate/issues?milestone=1&state=closed) | ||
|
||
**Features:** | ||
|
||
- Responsive designs for phones and tablets | ||
- Started tagging versions | ||
|
||
**Fixes:** | ||
|
||
- Fixed 'unrecognized expression' error | ||
- Fixed #undefined hash bug | ||
- Fixed bug where the current language tab would be unselected | ||
- Fixed bug where tocify wouldn't highlight the current section while searching | ||
- Fixed bug where ids of header tags would have special characters that caused problems | ||
- Updated layout so that pages with disabled search wouldn't load search.js | ||
- Cleaned up Javascript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Middleman | ||
gem 'middleman', '~>4.0.0' | ||
gem 'middleman-gh-pages', '~> 0.0.3' | ||
gem 'middleman-syntax', '~> 2.1.0' | ||
gem 'middleman-autoprefixer', '~> 2.7.0' | ||
gem "middleman-sprockets", "~> 4.0.0.rc" | ||
gem 'rouge', '~> 1.10.1' | ||
gem 'redcarpet', '~> 3.3.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
activesupport (4.2.5.1) | ||
i18n (~> 0.7) | ||
json (~> 1.7, >= 1.7.7) | ||
minitest (~> 5.1) | ||
thread_safe (~> 0.3, >= 0.3.4) | ||
tzinfo (~> 1.1) | ||
addressable (2.4.0) | ||
autoprefixer-rails (6.3.1) | ||
execjs | ||
json | ||
backports (3.6.7) | ||
capybara (2.5.0) | ||
mime-types (>= 1.16) | ||
nokogiri (>= 1.3.3) | ||
rack (>= 1.0.0) | ||
rack-test (>= 0.5.4) | ||
xpath (~> 2.0) | ||
coffee-script (2.4.1) | ||
coffee-script-source | ||
execjs | ||
coffee-script-source (1.10.0) | ||
compass-import-once (1.0.5) | ||
sass (>= 3.2, < 3.5) | ||
concurrent-ruby (0.9.2) | ||
contracts (0.12.0) | ||
erubis (2.7.0) | ||
execjs (2.6.0) | ||
fastimage (1.8.1) | ||
addressable (~> 2.3, >= 2.3.5) | ||
ffi (1.9.10) | ||
ffi (1.9.10-x64-mingw32) | ||
haml (4.0.7) | ||
tilt | ||
hamster (2.0.0) | ||
concurrent-ruby (~> 0.8) | ||
hashie (3.4.3) | ||
i18n (0.7.0) | ||
json (1.8.3) | ||
kramdown (1.9.0) | ||
listen (3.0.5) | ||
rb-fsevent (>= 0.9.3) | ||
rb-inotify (>= 0.9) | ||
middleman (4.0.0) | ||
coffee-script (~> 2.2) | ||
compass-import-once (= 1.0.5) | ||
haml (>= 4.0.5) | ||
kramdown (~> 1.2) | ||
middleman-cli (= 4.0.0) | ||
middleman-core (= 4.0.0) | ||
sass (>= 3.4.0, < 4.0) | ||
middleman-autoprefixer (2.7.0) | ||
autoprefixer-rails (>= 6.3.1, < 7.0.0) | ||
middleman-core (>= 3.3.3) | ||
middleman-cli (4.0.0) | ||
thor (>= 0.17.0, < 2.0) | ||
middleman-core (4.0.0) | ||
activesupport (~> 4.2) | ||
addressable (~> 2.4.0) | ||
backports (~> 3.6) | ||
bundler (~> 1.1) | ||
capybara (~> 2.5.0) | ||
contracts (~> 0.12.0) | ||
erubis | ||
execjs (~> 2.0) | ||
fastimage (~> 1.8) | ||
hamster (~> 2.0) | ||
hashie (~> 3.4) | ||
i18n (~> 0.7.0) | ||
listen (~> 3.0) | ||
padrino-helpers (~> 0.13.0) | ||
rack (>= 1.4.5, < 2.0) | ||
sass (>= 3.4) | ||
tilt (~> 1.4.1) | ||
uglifier (~> 2.6) | ||
middleman-gh-pages (0.0.3) | ||
rake (> 0.9.3) | ||
middleman-sprockets (4.0.0.rc.1) | ||
middleman-core (>= 4.0.0.rc.1) | ||
sprockets (~> 3.0) | ||
middleman-syntax (2.1.0) | ||
middleman-core (>= 3.2) | ||
rouge (~> 1.0) | ||
mime-types (3.0) | ||
mime-types-data (~> 3.2015) | ||
mime-types-data (3.2015.1120) | ||
mini_portile2 (2.0.0) | ||
minitest (5.8.4) | ||
nokogiri (1.6.7.2) | ||
mini_portile2 (~> 2.0.0.rc2) | ||
nokogiri (1.6.7.2-x64-mingw32) | ||
mini_portile2 (~> 2.0.0.rc2) | ||
padrino-helpers (0.13.1) | ||
i18n (~> 0.6, >= 0.6.7) | ||
padrino-support (= 0.13.1) | ||
tilt (~> 1.4.1) | ||
padrino-support (0.13.1) | ||
activesupport (>= 3.1) | ||
rack (1.6.4) | ||
rack-test (0.6.3) | ||
rack (>= 1.0) | ||
rake (10.4.2) | ||
rb-fsevent (0.9.7) | ||
rb-inotify (0.9.5) | ||
ffi (>= 0.5.0) | ||
redcarpet (3.3.4) | ||
rouge (1.10.1) | ||
sass (3.4.21) | ||
sprockets (3.4.1) | ||
rack (> 1, < 3) | ||
thor (0.19.1) | ||
thread_safe (0.3.5) | ||
tilt (1.4.1) | ||
tzinfo (1.2.2) | ||
thread_safe (~> 0.1) | ||
uglifier (2.7.2) | ||
execjs (>= 0.3.0) | ||
json (>= 1.8.0) | ||
xpath (2.0.0) | ||
nokogiri (~> 1.3) | ||
|
||
PLATFORMS | ||
ruby | ||
x64-mingw32 | ||
|
||
DEPENDENCIES | ||
middleman (~> 4.0.0) | ||
middleman-autoprefixer (~> 2.7.0) | ||
middleman-gh-pages (~> 0.0.3) | ||
middleman-sprockets (~> 4.0.0.rc) | ||
middleman-syntax (~> 2.1.0) | ||
redcarpet (~> 3.3.2) | ||
rouge (~> 1.10.1) | ||
|
||
BUNDLED WITH | ||
1.12.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2008-2013 Concur Technologies, Inc. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
not use this file except in compliance with the License. You may obtain | ||
a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
License for the specific language governing permissions and limitations | ||
under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# SMART Tutorial | ||
|
||
Run the tutorial here: | ||
https://cerner.github.io/smart-on-fhir-tutorial | ||
|
||
Description | ||
------------ | ||
The SMART tutorial is intended to help developers quickly create a example smart app, register it with Cerner's code console, and test it against Cerner's sandbox. It is a [Slate](https://github.com/lord/slate) site hosted through GitHub Pages and includes a small example app in the source folder. | ||
|
||
Getting Started | ||
------------------------------ | ||
|
||
### Prerequisites | ||
|
||
You're going to need: | ||
|
||
- Ruby | ||
|
||
### Getting Set Up | ||
|
||
To run this tutorial locally: | ||
|
||
```bash | ||
$ bundle install | ||
``` | ||
|
||
```bash | ||
$ bundle exec middleman server | ||
``` | ||
To deploy changes to the gh-pages branch: | ||
|
||
```bash | ||
$ ./deploy.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Vagrant.configure(2) do |config| | ||
config.vm.box = "ubuntu/trusty64" | ||
config.vm.network :forwarded_port, guest: 4567, host: 4567 | ||
|
||
config.vm.provision "bootstrap", | ||
type: "shell", | ||
inline: <<-SHELL | ||
sudo apt-get update | ||
sudo apt-get install -yq ruby2.0 ruby2.0-dev pkg-config build-essential nodejs git libxml2-dev libxslt-dev | ||
sudo apt-get autoremove -yq | ||
gem2.0 install --no-ri --no-rdoc bundler | ||
SHELL | ||
|
||
# add the local user git config to the vm | ||
config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig" | ||
|
||
config.vm.provision "install", | ||
type: "shell", | ||
privileged: false, | ||
inline: <<-SHELL | ||
echo "==============================================" | ||
echo "Installing app dependencies" | ||
cd /vagrant | ||
bundle config build.nokogiri --use-system-libraries | ||
bundle install | ||
SHELL | ||
|
||
config.vm.provision "run", | ||
type: "shell", | ||
privileged: false, | ||
run: "always", | ||
inline: <<-SHELL | ||
echo "==============================================" | ||
echo "Starting up middleman at http://localhost:4567" | ||
echo "If it does not come up, check the ~/middleman.log file for any error messages" | ||
cd /vagrant | ||
bundle exec middleman server --force-polling -l 1 &> ~/middleman.log & | ||
SHELL | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Markdown | ||
set :markdown_engine, :redcarpet | ||
set :markdown, | ||
fenced_code_blocks: true, | ||
smartypants: true, | ||
disable_indented_code_blocks: true, | ||
prettify: true, | ||
tables: true, | ||
with_toc_data: true, | ||
no_intra_emphasis: true | ||
|
||
# Assets | ||
set :css_dir, 'stylesheets' | ||
set :js_dir, 'javascripts' | ||
set :images_dir, 'images' | ||
set :fonts_dir, 'fonts' | ||
|
||
# Activate the syntax highlighter | ||
activate :syntax | ||
|
||
activate :autoprefixer do |config| | ||
config.browsers = ['last 2 version', 'Firefox ESR'] | ||
config.cascade = false | ||
config.inline = true | ||
end | ||
|
||
# Github pages require relative links | ||
activate :relative_assets | ||
set :relative_links, true | ||
|
||
# Build Configuration | ||
configure :build do | ||
# If you're having trouble with Middleman hanging, commenting | ||
# out the following two lines has been known to help | ||
# activate :minify_css | ||
# activate :minify_javascript | ||
# activate :relative_assets | ||
# activate :asset_hash | ||
# activate :gzip | ||
end | ||
|
||
# Deploy Configuration | ||
# If you want Middleman to listen on a different port, you can set that below | ||
set :port, 4567 |
Oops, something went wrong.