Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update
Browse files Browse the repository at this point in the history
HomunMage committed Jan 6, 2025
1 parent c8b4490 commit 1d6feae
Showing 1 changed file with 76 additions and 63 deletions.
139 changes: 76 additions & 63 deletions Others/Windows.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LangGraph GUI Setup on Windows
# LangGraph GUI Setup on Windows

This guide will help you set up and run the LangGraph-GUI, both backend and frontend, on a Windows environment.
This guide will help you set up and run the LangGraph-GUI, both backend and frontend, on a Windows environment, using environment variables for backend port and Ollama URL.

## Prerequisites

@@ -12,85 +12,98 @@ Before you begin, ensure you have the following installed on your system:

## Backend Setup

1. **Open a PowerShell Terminal**
Open a PowerShell terminal window to start the setup process.

2. **Create a Conda Environment (Optional)**
Create a new Conda environment for the LangGraph backend:
```bash
conda create --name langgraph-backend python=3.11
```
Activate your new environment:
```bash
conda activate langgraph-backend
```

4. **Clone the Backend Repository**
Clone the LangGraph backend repository from GitHub:
```bash
git clone https://github.com/LangGraph-GUI/LangGraph-GUI-backend
```

5. **Navigate to the Backend Directory**
Change directory to the backend project folder:
```bash
cd LangGraph-GUI-backend
```

6. **Install Python Dependencies**
Install the required Python packages using `pip`:
```bash
pip install -r requirements.txt
```

7. **Start the Backend Server**
Run the backend server:
```bash
mkdir src/workspace
cd src/workspace
python ../server.py
```
1. **Open a PowerShell Terminal**
Open a PowerShell terminal window to start the setup process.

2. **Create a Conda Environment (Optional)**
Create a new Conda environment for the LangGraph backend:
```bash
conda create --name langgraph-backend python=3.11
```
Activate your new environment:
```bash
conda activate langgraph-backend
```

3. **Clone the Backend Repository**
Clone the LangGraph backend repository from GitHub:
```bash
git clone https://github.com/LangGraph-GUI/LangGraph-GUI-backend
```

4. **Navigate to the Backend Directory**
Change directory to the backend project folder:
```bash
cd LangGraph-GUI-backend
```

5. **Install Python Dependencies**
Install the required Python packages using `pip`:
```bash
pip install -r requirements.txt
```
6. **Start the Backend Server**

**Set Environment Variables**
Before starting the backend, you need to set the following environment variables. If you skip this, the default values will be used:

* **BACKEND_PORT:** The port number for the backend server. (Default: 5000)
* **OLLAMA_BASE_URL:** The base URL for your Ollama service. (Default: `http://localhost:11434`)

To set these variables for your PowerShell session, use:

```powershell
$env:BACKEND_PORT=5000
$env:OLLAMA_BASE_URL="http://localhost:11434"
```

Run the backend server:
```bash
mkdir src/workspace
cd src/workspace
python ../server.py
```

## Frontend Setup

1. **Open Another PowerShell Terminal**
Open a new PowerShell terminal window.
Open a new PowerShell terminal window.

2. **Clone the Frontend Repository**
**frontend need dep**
Clone the LangGraph frontend repository from GitHub:
```bash
git clone --recursive https://github.com/LangGraph-GUI/LangGraph-GUI-frontend
```
**frontend need dep**
Clone the LangGraph frontend repository from GitHub:
```bash
git clone --recursive https://github.com/LangGraph-GUI/LangGraph-GUI-frontend
```

3. **Navigate to the Frontend Directory**
Change directory to the frontend project folder:
```bash
cd LangGraph-GUI-frontend
```
Change directory to the frontend project folder:
```bash
cd LangGraph-GUI-frontend
```

4. **Install Node.js Dependencies**
Use `npm` to install the required packages:
```bash
npm install
```
Use `npm` to install the required packages:
```bash
npm install
```

5. **Start the Frontend Server**
Launch the frontend server:
```bash
npm start
```
Launch the frontend server:
```bash
npm start
```

## Ollama Setup

1. **Open Another PowerShell Terminal**
Open another PowerShell terminal window.
Open another PowerShell terminal window.

2. **Start Ollama**
Run the Ollama service:
```bash
ollama serve
```
Run the Ollama service:
```bash
ollama serve
```

## Conclusion

0 comments on commit 1d6feae

Please sign in to comment.