Angular 4 base project for SMART and other FHIR-based UIs.
This is an AngularJS 2 project using grunt
as the build system, pug for HTML templates, SASS for CSS and Bootstrap for layout. npm
is the package manager. Assuming you already have node installed via brew install node
or similar:
npm install -g grunt typings
npm install # to install project development dependencies
typings install # to install TypeScript declarations
To run in development mode, just:
grunt # to serve the project and automatically recompile on file changes
Visit http://localhost:9000 and do your thang. :)
The application, when loaded, should look similar to the following screenshot:
First, build:
grunt clean # to remove all existing compiled files
grunt build # to build your local copy with any local changes
Then, assuming you've already familiar with Docker awesomeness and have it installed, plop the build into a wicked-fast nginx web server container using the including Dockerfile with:
docker build -t p3000/angular-on-fhir:latest . # though you probably want your own repo and tag strings :)
Extremely easy in your existing Dockerized hosting environment. Just:
docker run -d -p 9000:80 --restart unless-stopped p3000/angular-on-fhir:latest # or any official tag
And you're done. No environment variables or further configuration are needed. Jedi's may use your existing Kubernetes, Open Shift etc installations as you see fit. :)