Skip to content
Snippets Groups Projects

Configure and run

In order to setup the prod and dev environments do:

pnpm configure

This will created two .env files that are ignored by GIT:

.env.prod.local
.env.prod.dev

In order to run the production environment do:

pnpm run:app_name:prod

The development environment do:

pnpm run:app_name:dev

Deployment

Using docker

See ./docker/readme.md

Structure

This project is divided into sub-projects: packages/* and apps/*

packages/core

This package implements everything that can be shared between all data portal apps.

This includes core functionalities:

  • Navigation UI
  • Routing
  • Authentication

Which are provided thought the DataPortalApp entry point, which creates a react app with all of those set-up.

Then some other useful components and services are provided, including:

  • Icat API
  • Pagination
  • Tables (...)

apps/logistics

This is an example of data portal app which provides functionalities by instantiating the DataPortalApp and using some of the shared components.