Skip to content
A middleware layer to connect data consumers with the data sources
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Finish Open Source Jun 5, 2019
.formatter.exs Added ResponseCache plug and configure to cache the homepage search Jun 6, 2019
.travis.yml SMRT-1194 Prep for open source (#128) Jun 4, 2019
LICENSE Finish Open Source Jun 5, 2019


Discovery API serves as middleware between our metadata store and our Data Discovery UI.

To start your Phoenix server(from the root directory):

  • MIX_ENV=integration mix docker.start
  • Install dependencies with mix deps.get
  • Start Phoenix endpoint with iex -S mix phx.server
  • MIX_ENV=integration mix docker.stop

To run the tests

  • Run mix test to run the tests a single time
  • Run mix to re-run the tests when a file changes
  • Run mix --stale to only rerun the tests for modules that have changes
  • Run mix test.integration to run the integration tests

To run inside a container(from the root directory):

  • docker build . -t <image_name:tag>

To see the application live:

Calculating Completeness scores manually

For all datasets:


For a single dataset:

SmartCity.Dataset.get!(dataset_id) |> DiscoveryApi.Stats.StatsCalculator.calculate_and_save_completeness()

Datasets will be calculated and persisted to Redis with a key of discovery-api:stats:{{dataset_id}}

You can’t perform that action at this time.