Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

amida-tech/orange-clinical

Repository files navigation

Orange Clinical Interface

Basic web interface for clinicians to access OrangeRx API.

Quick up and running quide

Prerequisites

  • Node.js (v0.10+ for grunt/etc, and v10.0+ if you want to run the little dev server, (see below)) and NPM
  • Grunt.js, Karma and Bower (npm install -g grunt-cli karma bower)

Install dependencies:

npm install
bower install

Build and watch for changes:

grunt watch

Then either:

  1. Open in browser (this is the inferior way of doing it)
open ./build/index.html
  1. OR, better than opening in the browser, run the little dev server:

NOTE: This requires a Node version that has the --experimental-modules flag, as the server is build with .mjs files. Some or all Node v10 versions support this (not sure which).

cd dev-server/
npm install
cp .env.example.env .env
npm start

Docker Deployment

docker run -d -p THE_PORT:80 --name THE_NAME \
-e ORANGE_API_URL={ORANGE_API_URL} \
-e ORANGE_API_AVATAR_BASE_URL={ORANGE_API_AVATAR_BASE_URL} \
-e AUTH_MICROSERVICE_URL={AUTH_MICROSERVICE_URL} \
-e X_CLIENT_SECRET={X_CLIENT_SECRET} \
amidatech/orange-clinical

Environment Variables

ORANGE_API_URL

The URL of the orange-api. Must not end in a trailing /.

  • e.g. https://the-orange-api-server.com/v1
ORANGE_API_AVATAR_BASE_URL

The base URL of the orange api. Must not end in a trailing /.

  • e.g. https://the-orange-api-server.com.
AUTH_MICROSERVICE_URL

The URL of the amida-auth-microservice API. Must not end in a trailing /.

  • e.g. https://the-amida-auth-microservice.com/api/v1.
X_CLIENT_SECRET

Must match the X_CLIENT_SECRET defined by the Orange API.

Contributing

Contributors are welcome. See issues https://github.com/amida-tech/orange-clinical/issues

Release Notes

See release notes [here] (./RELEASENOTES.md)

License

Licensed under Apache 2.0