https://github.com/datopian/portal-nene
https://github.com/datopian/portal-nene
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/datopian/portal-nene
- Owner: datopian
- Created: 2025-05-21T23:33:37.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-05-21T23:33:39.000Z (9 months ago)
- Last Synced: 2025-10-01T04:39:27.213Z (4 months ago)
- Language: TypeScript
- Homepage: https://portal-nene.vercel.app
- Size: 4.04 MB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## What is this project?
This is supposed to be a template for the creation of frontend websites that talk interact with a multitenant CKAN instance to display results. you can just clone this code to a repo and set up the relevant environment variables, which are:
1. NEXT_PUBLIC_ORG - This is the name of the main org used in the project
2. NEXT_PUBLIC_DMS - This is the URL of the CKAN instance used
# Testing
Testing can be done using the cypress commands, just start running the app(ideally on production mode as it is faster) and then on a separate terminal run `yarn test` this should trigger cypress, you can also run `yarn text-browser` which is going to open the cypress web ui.
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.