This is the visual companion of Miller for our the digital exibition websites.
Build a specific version for a project is as easy as:
-
get your project name, e.g.
histjust
-
get the git tag in
master
branch withgit tag
, e.g.v1.1.4
-
copy
cp .env.example .env
and editREACT_APP_MILLER_CLIENT_ID
according to the target Miller instance -
verify the values of
REACT_APP_DOCUMENT_SCHEMA
-
build using
make
and concatenate project name and version number in theBUILD_TAG
: env variableBUILD_TAG=your-visual-editor-v1.1.4 make build-docker-image
If your project should support Mapbox, jsut add the env variable
REACT_APP_MAPBOX_ACCESS_TOKEN in your .env
file. If there's a valid value,
the editor "new module" page will display two additional modules, Module Map and Module Text & Map
Instead of using just PROXY_HOST
, from v1.1.4 onwards we use setupProxy using the http middleware proxy.
If yoiu run using make run-dev
or yarn start
a nice setupProxy.log file will appear next to package.json
that would make transparent which Proxy is using.
In the source code we usually refer to the env variable REACT_APP_EDITOR_BASENAME
.
This is generated from the PUBLIC_URL
that is not integrated in the react app as such.