3.1.1 • Published 7 months ago
@fintlabs/fint-podium-react-podlet v3.1.1
FINT Podium React Podlet
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
.
Usage
To run your React app as a Podium podlet in FLAIS you need to do the following:
- Create a sub folder in your project called
podlet
- Run
yarn init -y
- Run
yarn add @fintlabs/fint-podium-react-podlet @podium/podlet express
to install dependencies: - Create a podlet service:
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:
- Deploy React build files, main.js and main.css, to a CDN service
- Create a deployment for the podlet server, e.g. Docker.
Properties
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 |
3.1.1
7 months ago
3.1.0
1 year ago
3.0.0
1 year ago
3.0.0-rc-3
1 year ago
2.0.0-rc-3
1 year ago
2.0.0-rc-4
1 year ago
2.0.0-rc-9
1 year ago
2.0.0-rc-5
1 year ago
2.0.0-rc-6
1 year ago
2.0.0-rc-7
1 year ago
2.0.0
1 year ago
2.0.0-rc-8
1 year ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.0
1 year ago