Get Started
Cloud
Self-hosting requires more technical skill to setup instance, backing up database and maintaning updates. If you aren't experienced at managing servers and just want to use the webapp, we recommend using SamaFlow Cloud.
Quick Start
INFO: Pre-requisite: ensure NodeJS is installed on machine. Node
v18.15.0orv20and above is supported.
Install SamaFlow locally using NPM.
- Install SamaFlow:
npm install -g samaflow
You can also install a specific version. Refer to available versions.
npm install -g samaflow@x.x.x
- Start SamaFlow:
npx samaflow start
- Open: http://localhost:3000
Docker
There are two ways to deploy SamaFlow with Docker. First, git clone the project: https://github.com/SamaFlow/SamaFlow
Docker Compose
- Go to
docker folderat the root of the project - Copy the
.env.examplefile and paste it as another file named.env - Run:
docker compose up -d
- Open: http://localhost:3000
- You can bring the containers down by running:
docker compose stop
Docker Image
- Build the image:
docker build --no-cache -t samaflow .
- Run image:
docker run -d --name samaflow -p 3000:3000 samaflow
- Stop image:
docker stop samaflow
For Developers
SamaFlow has 4 different modules in a single mono repository:
- Server: Node backend to serve API logics
- UI: React frontend
- Components: Integration components
- Api Documentation: Swagger spec for SamaFlow APIs
Prerequisite
Install PNPM.
npm i -g pnpm
Setup 1
Simple setup using PNPM:
- Clone the repository
git clone https://github.com/SamaFlow/SamaFlow.git
- Go into repository folder
cd SamaFlow
- Install all dependencies of all modules:
pnpm install
- Build the code:
pnpm build
Start the app at http://localhost:3000
pnpm start
Setup 2
Step-by-step setup for project contributors:
- Fork the official SamaFlow Github Repository
- Clone your forked repository
- Create a new branch, see guide. Naming conventions:
- For feature branch:
feature/<Your New Feature> - For bug fix branch:
bugfix/<Your New Bugfix>.
- For feature branch:
- Switch to the branch you just created
- Go into repository folder:
cd SamaFlow
- Install all dependencies of all modules:
pnpm install
- Build the code:
pnpm build
- Start the app at http://localhost:3000
pnpm start
For development build:
Create
.envfile and specify thePORT(refer to.env.example) inpackages/ui- Create
.envfile and specify thePORT(refer to.env.example) inpackages/server
pnpm dev
- Any changes made in
packages/uiorpackages/serverwill be reflected at http://localhost:8080 - For changes made in
packages/components, you will need to build again to pickup the changes After making all the changes, run:
pnpm buildand
pnpm startto make sure everything works fine in production.
For Enterprise
Before starting the app, enterprise users are required to fill in the values for Enterprise Parameters in the .env file. Refer to .env.example for the required changes.
Reach out to support@flowiseai.com for the value of following env variables:
LICENSE_URL
FLOWISE_EE_LICENSE_KEY
Learn More
In this video tutorial, Leon provides an introduction to SamaFlow and explains how to set it up on your local machine.