Skip to content

datagouv/datagouv-search-indicator

Repository files navigation

datagouv-search-indicator

Build Status

Keep track of udata search results accross time and generate a static site to explore them.

Contributing queries

Queries are stored in:

These CSVs have the same 3-columns format:

  • query: a pure text search query (ie. q parameter)
  • params: a search querystring (ie. tag=something&tag=other)
  • expected: the expected model identifier

At least one of query and params is mandatory. If you have a q parameter in params and a query, the q parameter will be overwritten by query.

Running benchmark

Requires Python 3.6+

pip install -r requirements.pip
inv run -d my.domain.com

Frontend Setup

Use Node 9.4.0 (nvm install/nvm use if you have nvm installed)

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build