Skip to content

ICIJ/datashare-client

Repository files navigation


Web Client for Datashare

Status
CI checks CircleCI
Code Climate Code Climate
Latest version Latest version
Release date Release date
Open issues Open issues

Installation guide

Datashare Client

You need Yarn installed on your machine (tested with version 1.22) and Node.js 16 or above (16.16.0 recommended).

  • Install dependencies:
yarn
  • Serve with hot reload at localhost:9009
yarn serve

Datashare backend

Datashare backend allows to index, find names and provide file preview or download. It must be run alongside the client for manual testing with the benefits of hot reloading with yarn serve.

To run the backend you must:

  1. Get and install Datashare from datashare.icij.org ;
  2. Refer to the User Guide if you need help installing Datashare ;
  3. Run Datashare on port 8080 with CORS: datashare --cors "*" --tcpListenPort 8080.

Build Setup

# install / update dependencies
yarn

# serve with hot reload at localhost:9009
yarn serve

# build for production with minification
yarn build

# lint and fixe files
yarn lint

# run unit tests serially with jest
make unit

# run all tests
yarn test

# generate documentation
yarn doc