Skip to content

A Next.js application adhering to @from-static application patterns to render a Globus-powered research data portal.

License

Notifications You must be signed in to change notification settings

globus/static-data-portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

static-data-portal

🧪 BETA 🧪

This is a Globus-powered research data portal generator created using Next.js.


⚠️ IMPORTANT ⚠️ You only need to interact with this repository if you are improving the generator or using this code to start a self-managed project. If you want to deploy a data portal, copy our template-data-portal and modify the static.json file to suit your needs.



This is a Next.js project bootstrapped with create-next-app.

Developer Documentation

static.json

  • The static.json file is the main configuration file for the data portal.
  • The utils/static.ts file is used to enforce a TypeScript type on this file.
  • All pages and components that source information from the user-provided static.json should use utils/static.ts and its available helpers.
  • Typedoc is configured to generate documentation from utils/static.ts.

MDX Support

MDX support has been added to the project.

For simple pages, e.g. "Terms and Conditions" and "Privacy Policy" .mdx is used to simplify these files being overwritten by end consumers using a overrides or content directory.

content Directory

An end-user provided content directory can be defined to provide Markdown (or MDX) files that will be added as pages in the Next.js project. This allows for the end-user to provide custom pages without modifying the core project (via overrides). This also allows us to provide backwards compatibility should we decide to move away from Next.js in the future.