diff --git a/doc/docs/en/getting-started/development-guide.md b/doc/docs/en/getting-started/development-guide.md index cb7cbea1c..088793a68 100644 --- a/doc/docs/en/getting-started/development-guide.md +++ b/doc/docs/en/getting-started/development-guide.md @@ -53,6 +53,7 @@ nexent/ Before starting backend development, you need to deploy infrastructure services. These services include databases, caching, file storage, and other core components. ```bash +# Execute in the docker directory of the project root directory cd docker ./deploy.sh --mode infrastructure ``` @@ -63,6 +64,7 @@ Infrastructure mode will start PostgreSQL, Redis, Elasticsearch, and MinIO servi ### Backend Setup ```bash +# Execute in the backend directory of the project root directory cd backend uv sync --all-extras uv pip install ../sdk @@ -100,6 +102,7 @@ It's recommended to use multiple mirror source configurations to improve downloa ### Frontend Setup ```bash +# Execute in the frontend directory of the project root directory cd frontend pnpm install pnpm dev @@ -109,7 +112,7 @@ pnpm dev Before starting services, you need to activate the virtual environment: ```bash -# Execute in the project backend directory +# Execute in the backend directory of the project root directory cd backend source .venv/bin/activate # Activate virtual environment ``` diff --git a/doc/docs/zh/getting-started/development-guide.md b/doc/docs/zh/getting-started/development-guide.md index a9c68154e..bd4168541 100644 --- a/doc/docs/zh/getting-started/development-guide.md +++ b/doc/docs/zh/getting-started/development-guide.md @@ -53,6 +53,7 @@ nexent/ 在开始后端开发之前,需要先部署基础设施服务。这些服务包括数据库、缓存、文件存储等核心组件。 ```bash +# 在项目根目录的docker目录下执行 cd docker ./deploy.sh --mode infrastructure ``` @@ -63,6 +64,7 @@ cd docker ### 后端设置 ```bash +# 在项目根目录的backend目录下执行 cd backend uv sync --all-extras uv pip install ../sdk @@ -100,6 +102,7 @@ uv pip install ../sdk --index https://pypi.tuna.tsinghua.edu.cn/simple --index h ### 前端设置 ```bash +# 在项目根目录的frontend目录下执行 cd frontend pnpm install pnpm run dev @@ -109,7 +112,7 @@ pnpm run dev 在启动服务之前,需要先激活虚拟环境: ```bash -# 在项目backend目录下执行 +# 在项目根目录的backend目录下执行 cd backend source .venv/bin/activate # 激活虚拟环境 ```