@etalab/csvapi-front

0.6.3 • Public • Published

CSVAPI Front

CSVAPI Front is a UI for csvapi.

Install

npm install --save csvapi-front

Configuring

In order to work with csvapi, CSVAPI front 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 serve

You can build a final version using:

npm run build

Environment variables

You can provide some build time configuration using a .env file (see the .env.sample).

Known environment variables are:

  • VUE_APP_CSVAPI_URL: csvapi instance URL
  • VUE_APP_FILTERS_ENABLED: boolean, enables or disables filter support

Readme

Keywords

none

Package Sidebar

Install

npm i @etalab/csvapi-front

Weekly Downloads

2

Version

0.6.3

License

none

Unpacked Size

2.91 MB

Total Files

10

Last publish

Collaborators

  • nicolaskempf
  • maudetes
  • quaxzse
  • thomasg77
  • flightan
  • jdesboeufs
  • abulte