This repository demonstrates how to return different manifests depending on url query string.
The index.ts file in the src folder is used by the express server to return different manifest json depending supplied query string.
Query strings: env=staging - staging environment env=dev - dev environment
Following npm commands in the package.json perform the above commands: npm run staging "staging" :"start fin://localhost:5050/?env=staging"
npm run dev "dev" :"start fin://localhost:5050/?env=dev"
Follow the instructions below to get up and running.
- Install dependencies and do the initial build. Note that these examples assume you are in the sub-directory for the example.
npm run setup- Build the project.
npm run build- Start the test server in a new window.
npm run startfor proceeding steps start another terminal in the same location
- Start the Platform staging application.
npm run staging- Start the Platform dev application.
npm run devWhen dev is used the app-dev.html will open in a new window and the same for staging with app-staging.html.
This is an example of how to use OpenFin APIs to configure OpenFin Container. Its purpose is to provide an example and suggestions. DO NOT assume that it contains production-ready code. Please use this as a guide and provide feedback. Thanks!