-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Development
Welcome to the LobeChat development environment setup guide.
If you have access to GitHub Codespaces, you can click the button below to enter the online development environment with just one click:
Before starting development on LobeChat, you need to install and configure some necessary software and tools in your local environment. This document will guide you through these steps.
First, you need to install the following software:
- Node.js: LobeChat is built on Node.js, so you need to install Node.js. We recommend installing the latest stable version.
- Yarn: We use Yarn as the preferred package manager. You can download and install it from the Yarn official website.
- PNPM: We use PNPM as an auxiliary package manager. You can download and install it from the PNPM official website.
- Git: We use Git for version control. You can download and install it from the Git official website.
- IDE: You can choose your preferred integrated development environment (IDE). We recommend using WebStorm, a powerful IDE particularly suitable for TypeScript development.
After installing the above software, you can start setting up the LobeChat project.
- Get the code: First, you need to clone the LobeChat codebase from GitHub. Run the following command in the terminal:
git clone https://github.com/lobehub/lobe-chat.git
- Install dependencies: Then, navigate to the project directory and use Yarn to install the project's dependencies:
cd lobe-chat
yarn install
If you are using PNPM, you can execute:
cd lobe-chat
pnpm install
- Start the development server: After installing the dependencies, you can start the development server:
yarn run dev
Now, you can open http://localhost:3010
in your browser, and you should see the welcome page of LobeChat. This indicates that you have successfully set up the development environment.
During the development process, if you encounter any issues with environment setup or have any questions about LobeChat development, feel free to ask us at any time. We look forward to seeing your contributions!
This is the 🤯 / 🤖 Lobe Chat wiki. Wiki Home
- Architecture Design | 架构设计
- Code Style and Contribution Guidelines | 代码风格与贡献指南
- Complete Guide to LobeChat Feature Development | LobeChat 功能开发完全指南
- Conversation API Implementation Logic | 会话 API 实现逻辑
- Directory Structure | 目录架构
- Environment Setup Guide | 环境设置指南
- How to Develop a New Feature | 如何开发一个新功能:前端实现
- New Authentication Provider Guide | 新身份验证方式开发指南
- Resources and References | 资源与参考
- Technical Development Getting Started Guide | 技术开发上手指南
- Testing Guide | 测试指南