-
Notifications
You must be signed in to change notification settings - Fork 7
How to spin up the v3 stack
This guide will show you how to swap between v2 and v3 of the Author-Runner stack. This is written under the assumption that you have already spun up the v2 stack.
-
The following repositories cloned:
The front end of Author has not changed between v2 and v3.
- Move into the
eq-author-app
repository$ cd eq-author-app
- Move into the
eq-author
directory$ cd eq-author
- Fire up the front end
$ yarn start
The Author API now uses Cloud Firestore as its database instead of DynamoDB, as we have moved from hosting the product on Amazon Web Services to Google Cloud Platform. Additionally, a new endpoint has been created, /convert
, which allows external services to retrieve EQRunner v3 schemas via our API instead of by targetting Publisher directly.
- Open
docker-compose.yml
- Update the following enviornment variable values:
DATABASE=firestore
PUBLISHER_URL=http://docker.for.mac.localhost:4000/convert/
- Add this new enviornment variable to the list:
CONVERSION_URL=http://docker.for.mac.localhost:9000/publish/
- Move to the
eq-author-app
repository in the terminal$ cd eq-author-app
- Move to the
eq-author-api
directory$ cd eq-author-api
- Fire up the API
$ Docker-compose up
We have developed a new version of Publisher to accomodate the changes that the new EQRunner introduces.
- Move into the
eq-publisher-v3
repository$ cd eq-author-app
- Install dependencies and fire up Publisher in development mode
$ yarn && yarn develop
Development mode includes Nodemon. If you would like to run the application without this, use yarn start
instead.
This new version of EQRunner introduces a new schema format and various technology changes, notably using Cloud Datastore for its database solution and is hosted on the Google Cloud Platform.
- Move into the
eq-questionnaire-runner
repository$ cd eq-questionnaire-runner
- Fire up the application
$ docker-compose up -d
You should now have the v3 stack up and running. Each stack uses the same ports so be sure to keep that in mind when swapping between the two.