0.1.0 • Published 7 years ago
@opendatateam/dataexplorer v0.1.0
Data Explorer
Data Explorer is an alternative UI to csvapi.
Install
npm install --save dataexplorerConfiguring
In order to work with csvapi, Data Explorer should know its URL.
You can either provide a default one at build time (see Envrionment variables) or provide one at runtime.
To provide a runtime configuration, just define a <meta name="csvapi-url" /> in your html with the content attribute containing the CSVAPI URL.
ex:
<meta name="csvapi-url" content="https://link.to/my/csvapi" />Parameters
This UI expect a url query string to be able to load a tabular file.
Development
Getting started
This app has been tested under Node v10.
Install all dependencies and laucnh the development server
npm install
npm run startYou can build a final version using:
npm run buildEnvironment variables
You can provide some build time configuration using a .env file (see the .env.sample).
Knwon environment variables are:
REACT_APP_CSVAPI_URL: CSVAPI instance URL
0.1.0
7 years ago