Skip to content

Using a Framework to Create Your STRATO Application

COMING SOON -- NOTE: This feature is not yet in production, but will be included later this summer in an upcoming release

Application Framework Bootstrapping Tool

This utility instantiates a framework for building a STRATO application. It performs the following steps:

  • Sets up the OAuth configuration
  • Initializes a backend skeleton
  • Initializes a frontend REACT-based UI
  • Sets up Docker packaging

Dependencies

In addition to the STRATO dependencies, the following tools should already be installed

  • Node
  • Yarn

Usage

node <path-to-index.js>/index.js create <project-name>

The above command prompts the user for OAuth details, creates a directory with and initializes the STRATO app. After a project has been initialized, please look at the project README for instructions on how to execute the project.

Assumptions

This utility makes the following assumptions:

  • STRATO is executing on localhost on port 8080
  • The application will execute on port 80 on localhost
  • STRATO is being executed with OAUTH_ENABLED and user has OAuth details for the relevant identity server

It is possible to setup the application for a different environment by modifying the config file that is generated under project-name-server/config directory.