GSIM Browser using LDS server
369
A React application to browse the GSIM object-model stored in LDS.
This application is fairly small and its only function is to import and use react-components-library and then expose the ability to turn on special features from react-components-library like the ability to:
Noteworthy information about react-components-library is that it builds forms and tables from JSONSchemas exposed by LDS. To do that its needs a producer to be able to decode the structure of the stored objects, handle and show them correctly in the UI. Currently a producer for GSIM objects is supported and already loaded in. Producers are located in the react-components-library code but might find their way to a separate repository later.
The first time you clone the repository, remember to run yarn install
Run REACT_APP_LDS="LDS_url_here" yarn start and navigate to http://localhost:3000/
If you leave out REACT_APP_LDS it defaults to http://localhost:9090/
REACT_APP_LDS="LDS_url_here" yarn buildyarn global add serve (if you do not have serve)serve -s buildhttp://localhost:5000/Jest (through react-test-renderer) and Enzyme is used for testing
yarn test runs all tests and yarn coverage calculates (rather unreliably) test coverage
At the moment this application imports react-components-library directly from GitHub which means that you need read
access to the repository in order to fetch the dependency. This will change later when we get to upload React libraries
to Nexus or go public. This also means that updates to dependencies will not be reflected unless you run yarn upgrade.
docker build . -t dc-gsim-browser:0.1docker run -p 8000:80 dc-gsim-browser:0.1http://localhost:8000/gsim/Content type
Image
Digest
Size
10.8 MB
Last updated
over 7 years ago
docker pull statisticsnorway/gsim-browser