This is a CKAN-based PortalJS website bootstrapped with https://github.com/datopian/portaljs-frontend-starter
This is a template for the creation of PortalJS CKAN decoupled frontends, powered by React and Next.js.
Demo: https://portaljs-cloud-frontend-template.vercel.app
PortalJS Cloud uses this template for creating new portals.
If you want to quickly get started for free, navigate to https://cloud.portaljs.com and create an account!
PortalJS Cloud will automatically setup a GitHub repository for your portal, based on this template, and deploy it.
Your portal's GitHub repository can be found on your PortalJS Cloud dashboard, and you can raise PRs against it to customize your portal, or let us handle the customization for you by reaching out to us at [email protected].
Learn more at https://portaljs.com/
Note
In standalone mode, you are going to need your own dedicated CKAN instance.
In order to use this repository in standalone mode (i.e. without PortalJS Cloud), click on the "Use this template" button on the top right corner to replicate this code to a new repo.
Then, you can start customizing it locally by following the development instructions bellow, and/or deploy it somewhere such as on Vercel.
-
Clone this repository
-
Install the dependencies with
npm i
-
Create a new
.env
file with:
# This is the URL of the CKAN instance. Use the example value if you are using PortalJS Cloud.
NEXT_PUBLIC_DMS=https://api.cloud.portaljs.com
# Leave it empty if you are not using PortalJS Cloud. This is the name of the main organization for your portal in PortalJS Cloud.
# You can find the this value in the Organizations page in the PortalJS Cloud dashboard.
NEXT_PUBLIC_ORG=my-org
-
Run
npm run dev
to start the development server -
Access
http://localhost:3000
in your browser
This template was developed with Next.js/React and TailwindCSS.
In order to learn more about how it can be customized, check the following documentations: