datahub/examples/dataset-frictionless
Rufus Pollock bebad22e1d
Merge pull request #593 from datopian/dependabot/npm_and_yarn/examples/dataset-frictionless/next-11.1.2
Bump next from 10.0.8 to 11.1.2 in /examples/dataset-frictionless
2021-10-19 18:25:23 +02:00
..
2021-05-24 09:17:19 +01:00
2021-05-24 09:20:21 +01:00

This example creates a portal/showcase for a single dataset. The dataset should be a Frictionless dataset (data package) i.e. there should be a datapackage.json.

How to use

npx create next-app -e https://github.com/datopian/portal.js/tree/main/examples/dataset-frictionless
# choose a name for your portal when prompted e.g. your-portal or go with default my-app

# then run it
cd your-portal
yarn #install packages
yarn dev #start app in dev mode

You should see the demo portal running with the example dataset provided:

Use your own dataset

You can try it out with other Frictionless datasets.

In the directory of your portal do:

export PORTAL_DATASET_PATH=/path/to/my/dataset

Then restart the dev server:

yarn dev

Check the portal page and it should have updated e.g. like: