Skip to content

Commit 61a0ee5

Browse files
committed
[update] readme and env.sample
1 parent 173bf08 commit 61a0ee5

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A full-stack web application that integrates DHTMLX Diagram with AI for generating organizational charts and diagrams from natural language text descriptions.
44

5-
### **[✨ Try the Live Demo >>>](https://dhtmlx.com/docs/demo/diagram-org-chart-builder-ai-demo/)**
5+
### **[✨ Try the Live Demo >>>](https://dhtmlx.com/docs/demo/ai-org-chart-builder/)**
66

77
## Features
88

@@ -14,7 +14,7 @@ A full-stack web application that integrates DHTMLX Diagram with AI for generati
1414
## AI Service
1515

1616
- Configured to work with any OpenAI API-compatible service.
17-
- Tested with `gpt-5-nano` model.
17+
- Tested with `gpt-4.1-nano` model.
1818

1919
## Setup and Installation
2020

@@ -36,11 +36,15 @@ OPENAI_BASE_URL=https://api.openai.com/v1
3636

3737
# --- Security Configuration ---
3838
CORS_ALLOWED_ORIGINS=http://localhost:3001,http://127.0.0.1:3001,http://localhost:5500,http://127.0.0.1:5500
39+
40+
# --- Server Configuration (optional) ---
41+
PORT=3001
3942
```
4043

4144
- **`OPENAI_API_KEY`**: (Required) Your secret API key for the AI service.
4245
- **`OPENAI_BASE_URL`**: The API endpoint for the AI service. Can be changed to use a proxy or a different provider compatible with the OpenAI API.
4346
- **`CORS_ALLOWED_ORIGINS`**: A crucial security setting. This is a comma-separated list of web addresses allowed to connect to your backend server. For production, you **must** change this to your public frontend's URL (e.g., `https://myapp.com`).
47+
- **`PORT`**: (Optional) The port number on which the server will run. Defaults to 3001 if not set.
4448

4549
### Run the Application
4650

env.sample

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ OPENAI_BASE_URL=https://api.openai.com/v1
1818
# For production, set this to your public frontend URL.
1919
# Example: https://my-app.com,https://staging.my-app.com
2020

21-
CORS_ALLOWED_ORIGINS=http://localhost:3001,http://localhost:3002,http://127.0.0.1:3001,http://localhost:5500,http://127.0.0.1:5500
21+
CORS_ALLOWED_ORIGINS=http://localhost:3001,http://localhost:3002,http://127.0.0.1:3001,http://localhost:5500,http://127.0.0.1:5500
22+
23+
# --- Server Configuration (optional) ---
24+
PORT=3001

0 commit comments

Comments
 (0)