3.1.1 • Published 7 months ago

@fintlabs/fint-podium-react-podlet v3.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

FINT Podium React Podlet

npm (scoped) TypeDocs

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:

  1. Create a sub folder in your project called podlet
  2. Run yarn init -y
  3. Run yarn add @fintlabs/fint-podium-react-podlet @podium/podlet express to install dependencies:
  4. 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

PropertyDefaultDescription
PODLET_VERSION1.0.0
IS_DEVELOPMENTfalseThis is set with the following expression process.env.NODE_ENV === 'development'
PODLET_PATH_NAME/
PODLET_PORT7100
LOGGING_LEVELinfo
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