Release app for the MicroApps framework, by PwrDrvr LLC. Provides the ability to control which version of an app is launched.
npm install @pwrdrvr/microapps-app-release-cdk!Build/Deploy CI !JSII Build !Release
Example / basic Next.js-based Release app for the MicroApps framework.
- Overview
- Screenshot
- Try the App
- Video Preview of the App
- Functionality
- Installation
- Installation of CDK Construct
- Node.js TypeScript/JavaScript
- Add the Construct to your CDK Stack
- Lists all deployed applications
- Shows all versions and rules per application
- Allows setting the default rule (pointer to version) for each application
Example CDK Stack that deploys @pwrdrvr/microapps-app-release:
- Deploying the MicroAppsAppRelease CDK Construct on the MicroApps CDK Construct
The application is intended to be deployed upon the MicroApps framework and it operates on a DynamoDB Table created by the MicroApps framework. Thus, it is required that there be a deployment of MicroApps that can receive this application. Deploying the MicroApps framework and general application deployment instructions are covered by the MicroApps documentation.
The application is packaged for deployment via AWS CDK and consists of a single Lambda function that reads/writes the MicroApps DynamoDB Table.
The CDK Construct is available for TypeScript, DotNet, Java, and Python with docs and install instructions available on @pwrdrvr/microapps-app-release-cdk - Construct Hub.
``sh`
npm i --save-dev @pwrdrvr/microapps-app-release-cdk
See cdk-stack for a complete example used to deploy this app for PR builds.
`typescript
import { MicroAppsAppRelease } from '@pwrdrvr/microapps-app-release-cdk';
const app = new MicroAppsAppRelease(this, 'app', {
functionName: microapps-app-${appName}${shared.envSuffix}${shared.prSuffix},``
table: dynamodb.Table.fromTableName(this, 'apps-table', shared.tableName),
nodeEnv: shared.env as Env,
removalPolicy: shared.isPR ? RemovalPolicy.DESTROY : RemovalPolicy.RETAIN,
});