This is a small helper library to help create a podlet for you react project to run in the FINTLabs/FLAIS environment.
Checkout the awesome Podium project to learn more
about Podlets and podium-lib.
To run your React app as a Podium podlet in FLAIS you need to do the following:
podletyarn init -yyarn add @fintlabs/fint-podium-react-podlet @podium/podlet express to install dependencies:Javascript
const {podlet} = require("@fintlabs/fint-podium-react-podlet");
const packageJson = require("./package.json");
const PODLET_NAME = process.env.PODLET_NAME || packageJson.name;
startPodService(PODLET_NAME, `${__dirname}/asset-manifest.json`);
Typescript
import {startPodService} from "@fintlabs/fint-podium-react-podlet";
startPodService(PODLET_NAME, `${__dirname}/asset-manifest.json`);
In addition, you need to:
| Property | Default | Description | 
|---|---|---|
| PODLET_VERSION | 1.0.0 | |
| IS_DEVELOPMENT | false | This is set with the following expression process.env.NODE_ENV === 'development' | 
| PODLET_PATH_NAME | / | |
| PODLET_PORT | 7100 | |
| LOGGING_LEVEL | info | 
Generated using TypeDoc