Basic web interface for clinicians to access OrangeRx API.
- 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:
- Open in browser (this is the inferior way of doing it)
open ./build/index.html
- 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 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
The URL of the orange-api
. Must not end in a trailing /
.
- e.g.
https://the-orange-api-server.com/v1
The base URL of the orange api. Must not end in a trailing /
.
- e.g.
https://the-orange-api-server.com
.
The URL of the amida-auth-microservice
API. Must not end in a trailing /
.
- e.g.
https://the-amida-auth-microservice.com/api/v1
.
Must match the X_CLIENT_SECRET
defined by the Orange API.
Contributors are welcome. See issues https://github.com/amida-tech/orange-clinical/issues
See release notes [here] (./RELEASENOTES.md)
Licensed under Apache 2.0