1.7 KiB
1.7 KiB
title, authors, date, filetype
| title | authors | date | filetype | |
|---|---|---|---|---|
| Example: Data catalog with data coming from CKAN |
|
2023-04-20 | blog |
The ckan-example added to PortalJS is intended to provide users with an easy way to set up a data catalog that can be used to display and share data stores behind a CKAN Backend. With this example, users can quickly set up a web-based portal that allows them to showcase their data and make it accessible to others, all this being done just by adding a simple env variable pointing to a CKAN Deployment.
Demo
To get a feel of the project, users can check the live deployment.
Below are some screenshots:
Front page
Individual dataset page
How to use this example as a template
- Create a new file inside of
exampleswithcreate-next-app:
npx create-next-app <app-name> --example https://github.com/datopian/portaljs/tree/main/ --example-path examples/ckan-example
- Inside
<app-name>, go to theproject.jsonfile and replace all instances ofckan-examplewith<app-name> - Set the
DMSenv variable to the Url of the CKAN Instance, eg.:export DMS=https://demo.dev.datopian.com - Run the app:
nx serve <app-name>
Congratulations, you now have something similar to this running on http://localhost:4200

If yo go to any one of those pages by clicking on More info you will see something similar to this


