Quick Start
This document will help you quickly get started with FlowGram Runtime, including environment preparation, installation, configuration, creating and running workflows. Through this guide, you'll be able to set up your workflow runtime environment and run your first workflow example in a short time.
Getting the Code
Since FlowGram Runtime is positioned as a demo rather than an SDK and will not be published as an npm package, you need to follow these steps to obtain and use it:
Method 1: Fork the Repository (Recommended)
- Visit the FlowGram Runtime repository
- Click the "Fork" button to create your own copy of the repository
- Clone your forked repository to your local machine
Method 2: Direct Clone
If you just want to try it out without submitting changes, you can clone the original repository directly:
Environment Preparation
Before you start using FlowGram Runtime, please ensure your development environment meets the following requirements:
- Node.js: Version 18.x or higher (LTS version recommended)
- Package Manager: pnpm 9+ and rush 5+
Installing Dependencies and Project Setup
After obtaining the code, you need to install dependencies and perform basic setup:
- Install Project Dependencies
- Build the Project
Starting the Service
- Navigate to Runtime Directory
- Start the nodejs Server
If everything is working correctly, you should see the following output in the console:
- Verify the Service
You can test the service using cURL:
You should see the following output in the command line where the service is running:
Compiling the Service
- Enter the Runtime Directory
- Compile the Service
- Start the nodejs Server