Ola Rubaj c706575ae4
Replace @flowershow/* with @portaljs/* packages in /examples (#953)
* [examples/ckan][m]: rplc @flowershow with @portaljs packages

* [examples/fivethirtyeight][m]: rplc @flowershow with @portaljs packages

* [examples/turing][m]: rplc @flowershow with @portaljs packages

* [examples/openspending][m]: rplc @flowershow with @portaljs packages

* [examples/learn][m]: rplc @flowershow with @portaljs packages

* [examples/github-backed-catalog][m]: rplc @flowershow with @portaljs packages

* [examples/github-backed-catalog][xs] - fix build

* [examples][m] - fix builds

* [examples/openspending][xs] - fix build

---------

Co-authored-by: Luccas Mateus de Medeiros Gomes <luccasmmg@gmail.com>
2023-06-16 09:13:54 -03:00
..
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00
2023-05-23 20:23:26 -03:00

This is a repo intended to serve as an example of a data catalog that get its data from a CKAN Instance.

npx create-next-app <app-name> --example https://github.com/datopian/portaljs/tree/main/examples/ckan-example
cd <app-name>
  • This project uses CKAN as a backend, so you need to point the project to the CKAN Url desired, you can do so by setting up the DMS env variable in your terminal or adding a .env file with the following content:
DMS=<ckan url>
  • Run the app using:
npm run dev

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

Deployment

Deploy with Vercel

By clicking on this button, you will be redirected to a page which will allow you to clone the content into your own github/gitlab/bitbucket account and automatically deploy everything.

Extra commands

You can also build the project for production with

npm run build

And run using the production build like so:

npm run start