mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 04:15:45 +08:00
Update for windows (#56)
* Update dev-config.md update for windows * Update dev-config.md * Update dev-config.md * Update dev-config.md * perf: comments --------- Co-authored-by: Junyan Qin <[email protected]>
This commit is contained in:
co-authored by
Junyan Qin
parent
08c28c0387
commit
3676c0ab47
@@ -1,7 +1,5 @@
|
||||
# Development Configuration
|
||||
|
||||
> This document is based on LangBot version 4.0
|
||||
|
||||
LangBot is divided into frontend and backend. The frontend is developed using Next.js + shadcn, and the backend is developed using Quart (an asynchronous version of Flask).
|
||||
|
||||
## Backend
|
||||
@@ -25,15 +23,23 @@ At this point, the configuration file will be automatically generated in the `da
|
||||
|
||||
## Frontend
|
||||
|
||||
The code is located in the `web` directory and requires Node.js.
|
||||
The code is located in the `web` directory and requires Node.js and [pnpm](https://pnpm.io/installation).
|
||||
|
||||
Copy `.env.example` to `.env` and fill in the values.
|
||||
|
||||
- Usage in Linux and other environments
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
Recommended to use [pnpm](https://pnpm.io/installation) to install dependencies.
|
||||
- Usage in Windows environments
|
||||
|
||||
```bash
|
||||
copy .env.example .env
|
||||
```
|
||||
|
||||
Install dependencies and start the frontend
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# 开发配置
|
||||
|
||||
> 此文档基于 LangBot 4.0 版本编写
|
||||
|
||||
LangBot 分为前端和后端,前端使用 Next.js + shadcn 开发,后端通过 Quart(Flask 的异步版本)开发。
|
||||
|
||||
## 后端
|
||||
@@ -25,15 +23,23 @@ uv run main.py
|
||||
|
||||
## 前端
|
||||
|
||||
代码位于 `web` 目录下,需要安装 Node.js。
|
||||
代码位于 `web` 目录下,需要安装 Node.js,[pnpm](https://pnpm.io/zh/installation)。
|
||||
|
||||
复制 `.env.example` 到 `.env`。
|
||||
|
||||
- linux环境使用
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
推荐使用 [pnpm](https://pnpm.io/zh/installation) 安装依赖。
|
||||
- windows环境使用
|
||||
|
||||
```bash
|
||||
copy .env.example .env
|
||||
```
|
||||
|
||||
安装依赖并启动前端
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
|
||||
Reference in New Issue
Block a user