@@ -21,9 +21,11 @@ English | [繁體中文](./i18n/README-TW.md) | [簡體中文](./i18n/README-ZH.
21
21
Download and Install [ NodeJS] ( https://nodejs.org/en/download ) >= 18.15.0
22
22
23
23
1 . Install Flowise
24
+
24
25
``` bash
25
26
npm install -g flowise
26
27
```
28
+
27
29
2. Start Flowise
28
30
29
31
` ` ` bash
@@ -52,16 +54,19 @@ Download and Install [NodeJS](https://nodejs.org/en/download) >= 18.15.0
52
54
# ## Docker Image
53
55
54
56
1. Build the image locally:
57
+
55
58
` ` ` bash
56
59
docker build --no-cache -t flowise .
57
60
` ` `
61
+
58
62
2. Run image:
59
63
60
64
` ` ` bash
61
65
docker run -d --name flowise -p 3000:3000 flowise
62
66
` ` `
63
67
64
68
3. Stop image:
69
+
65
70
` ` ` bash
66
71
docker stop flowise
67
72
` ` `
@@ -75,57 +80,81 @@ Flowise has 3 different modules in a single mono repository.
75
80
- ` components` : Third-party nodes integrations
76
81
- ` api-documentation` : Auto-generated swagger-ui API docs from express
77
82
78
- # ## Prerequisite
83
+ You can develop Flowise either directly on your local machine or using Dev Containers for a more isolated and consistent development environment.
84
+
85
+ # ## Option 1: Setup on local machine
86
+
87
+ 1. Install [PNPM](https://pnpm.io/installation)
79
88
80
- - Install [PNPM](https://pnpm.io/installation)
81
89
` ` ` bash
82
90
npm i -g pnpm
83
91
` ` `
84
92
85
- # ## Setup
86
-
87
- 1. Clone the repository
93
+ 2. Clone the repository
88
94
89
95
` ` ` bash
90
96
git clone https://github.com/FlowiseAI/Flowise.git
91
97
` ` `
92
98
93
- 2 . Go into repository folder
99
+ 3 . Go into repository folder
94
100
95
101
` ` ` bash
96
102
cd Flowise
97
103
` ` `
98
104
99
- 3 . Install all dependencies of all modules:
105
+ 4 . Install all dependencies of all modules:
100
106
101
107
` ` ` bash
102
108
pnpm install
103
109
` ` `
104
110
105
- 4. Build all the code:
111
+ # ## Option 2: Setup with Dev Containers
112
+
113
+ Using [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) provides a consistent development environment for all contributors without worrying about local dependencies.
114
+
115
+ 1. Install the prerequisites:
116
+
117
+ - [Visual Studio Code](https://code.visualstudio.com/)
118
+ - [Docker](https://www.docker.com/products/docker-desktop/)
119
+ - [Dev Containers extension](https://marketplace.visualstudio.com/items? itemName=ms-vscode-remote.remote-containers)
120
+
121
+ 2. Clone the repository and open it in VS Code
122
+
123
+ ` ` ` bash
124
+ git clone https://github.com/FlowiseAI/Flowise.git
125
+ code Flowise
126
+ ` ` `
127
+
128
+ 3. When prompted " Reopen in Container" , click it, or run the command " Dev Containers: Reopen in Container" from the command palette (F1)
129
+
130
+ 4. The container will install dependencies automatically. This process may take a few minutes for the first time.
131
+
132
+ # ## Build and start
133
+
134
+ 1. Build all the code:
106
135
107
136
` ` ` bash
108
137
pnpm build
109
138
` ` `
110
139
111
140
< details>
112
- < summary> Exit code 134 (JavaScript heap out of memory)< /summary>
141
+ < summary> Exit code 134 (JavaScript heap out of memory)< /summary>
113
142
If you get this error when running the above ` build` script, try increasing the Node.js heap size and run the script again:
114
143
115
144
export NODE_OPTIONS=" --max-old-space-size=4096"
116
145
pnpm build
117
146
118
147
< /details>
119
148
120
- 5 . Start the app:
149
+ 2 . Start the app:
121
150
122
151
` ` ` bash
123
152
pnpm start
124
153
` ` `
125
154
126
155
You can now access the app on [http://localhost:3000](http://localhost:3000)
127
156
128
- 6 . For development build:
157
+ 3 . For development build:
129
158
130
159
- Create ` .env` file and specify the ` VITE_PORT` (refer to ` .env.example` ) in ` packages/ui`
131
160
- Create ` .env` file and specify the ` PORT` (refer to ` .env.example` ) in ` packages/server`
0 commit comments