Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Latest commit

 

History

History

fsm

Finite State Machine

The finite state machine service (also dubbed fsm in the code base) is the core processing component processing raw GSI messages and extracting information out of those.

For a detailed description of the finite state machine, please view this doc.

Setup

Nodejs installation

The fsm is written in TypeScript, which requires a local Node.js development environment.

To install the latest version of Node.js head over to their website, download and install the corresponding version for your operating system.

Environment variables

In order to prevent environment variables containing potential dev secrets or tokens from leaking, a dot env file is used for local development.

Copy the .env.example file in place and rename the newly created file to .env

Next fill in missing values and save the file.

Installing dependencies

Installing all necessary dependencies can be done using:

npm install

Development

To start the service in development mode, please run:

npm run dev

The service's sources are located in the ./src folder.

As most of this project has been developed using VS Code, I'm recommending to use VS Code with Fortify's recommended extensions and opening each service in an individual VS Code window.

Before committing

Before committing changes make sure that your code:

  • Can successfully compile using:

    npm run compile
  • Has no linting errors using:

    npm run check
  • The package.json version has been increased according to SemVer.