Skip to content

Commit

Permalink
📝 docs: Add server database and auth features / server database deplo…
Browse files Browse the repository at this point in the history
…yment guide (lobehub#2901)

* 📝 docs(wip): Add new features

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* update docs

* Update `docs/self-hosting/advanced/upstream-sync.zh-CN.mdx` (lobehub#2679)

* add docs

* update docs

* update docs

* update

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
Co-authored-by: ijevin <jevin@jevin.org>
  • Loading branch information
3 people committed Jun 18, 2024
1 parent bb86f63 commit 4229e4f
Show file tree
Hide file tree
Showing 9 changed files with 1,093 additions and 30 deletions.
55 changes: 48 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ One-click **FREE** deployment of your private OpenAI ChatGPT/Claude/Gemini/Groq/
- [`5` Text to Image Generation](#5-text-to-image-generation)
- [`6` Plugin System (Function Calling)](#6-plugin-system-function-calling)
- [`7` Agent Market (GPTs)](#7-agent-market-gpts)
- [`8` Progressive Web App (PWA)](#8-progressive-web-app-pwa)
- [`9` Mobile Device Adaptation](#9-mobile-device-adaptation)
- [`10` Custom Themes](#10-custom-themes)
- [`8` Support Local / Remote Database](#8-support-local--remote-database)
- [`9` Support Clerk / NextAuth user auth systems](#9-support-clerk--nextauth-user-auth-systems)
- [`10` Progressive Web App (PWA)](#10-progressive-web-app-pwa)
- [`11` Mobile Device Adaptation](#11-mobile-device-adaptation)
- [`12` Custom Themes](#12-custom-themes)
- [`*` What's more](#-whats-more)
- [⚡️ Performance](#️-performance)
- [🛳 Self Hosting](#-self-hosting)
Expand Down Expand Up @@ -280,9 +282,44 @@ Our marketplace is not just a showcase platform but also a collaborative space.

</div>

[![][image-feat-database]][docs-feat-database]

### `8` [Support Local / Remote Database][docs-feat-database]

LobeChat supports the use of both server-side and local databases. Depending on your needs, you can choose the appropriate deployment solution:

- **Local database**: suitable for users who want more control over their data and privacy protection. LobeChat uses CRDT (Conflict-Free Replicated Data Type) technology to achieve multi-device synchronization. This is an experimental feature aimed at providing a seamless data synchronization experience.
- **Server-side database**: suitable for users who want a more convenient user experience. LobeChat supports PostgreSQL as a server-side database. For detailed documentation on how to configure the server-side database, please visit [Configure Server-side Database](https://lobehub.com/docs/self-hosting/advanced/server-database).

Regardless of which database you choose, LobeChat can provide you with an excellent user experience.

<div align="right">

[![][back-to-top]](#readme-top)

</div>

[![][image-feat-auth]][docs-feat-auth]

### `9` [Support Multi-User Management][docs-feat-auth]

LobeChat supports multi-user management and provides two main user authentication and management solutions to meet different needs:

- **next-auth**: LobeChat integrates `next-auth`, a flexible and powerful identity verification library that supports multiple authentication methods, including OAuth, email login, credential login, etc. With `next-auth`, you can easily implement user registration, login, session management, social login, and other functions to ensure the security and privacy of user data.

- **Clerk**: For users who need more advanced user management features, LobeChat also supports `Clerk`, a modern user management platform. `Clerk` provides richer functions, such as multi-factor authentication (MFA), user profile management, login activity monitoring, etc. With `Clerk`, you can get higher security and flexibility, and easily cope with complex user management needs.

Regardless of which user management solution you choose, LobeChat can provide you with an excellent user experience and powerful functional support.

<div align="right">

[![][back-to-top]](#readme-top)

</div>

[![][image-feat-pwa]][docs-feat-pwa]

### `8` [Progressive Web App (PWA)][docs-feat-pwa]
### `10` [Progressive Web App (PWA)][docs-feat-pwa]

We deeply understand the importance of providing a seamless experience for users in today's multi-device environment.
Therefore, we have adopted Progressive Web Application ([PWA](https://support.google.com/chrome/answer/9658361)) technology,
Expand All @@ -309,7 +346,7 @@ providing smooth animations, responsive layouts, and adapting to different devic

[![][image-feat-mobile]][docs-feat-mobile]

### `9` [Mobile Device Adaptation][docs-feat-mobile]
### `11` [Mobile Device Adaptation][docs-feat-mobile]

We have carried out a series of optimization designs for mobile devices to enhance the user's mobile experience. Currently, we are iterating on the mobile user experience to achieve smoother and more intuitive interactions. If you have any suggestions or ideas, we welcome you to provide feedback through GitHub Issues or Pull Requests.

Expand All @@ -321,7 +358,7 @@ We have carried out a series of optimization designs for mobile devices to enhan

[![][image-feat-theme]][docs-feat-theme]

### `10` [Custom Themes][docs-feat-theme]
### `12` [Custom Themes][docs-feat-theme]

As a design-engineering-oriented application, LobeChat places great emphasis on users' personalized experiences,
hence introducing flexible and diverse theme modes, including a light mode for daytime and a dark mode for nighttime.
Expand Down Expand Up @@ -629,7 +666,7 @@ Every bit counts and your one-time donation sparkles in our galaxy of support! Y
</details>

Copyright © 2024 [LobeHub][profile-link]. <br />
This project is [MIT](./LICENSE) licensed.
This project is [Apache 2.0](./LICENSE) licensed.

<!-- LINK GROUP -->

Expand Down Expand Up @@ -665,6 +702,8 @@ This project is [MIT](./LICENSE) licensed.
[docs-docker]: https://lobehub.com/docs/self-hosting/platform/docker
[docs-env-var]: https://lobehub.com/docs/self-hosting/environment-variables
[docs-feat-agent]: https://lobehub.com/docs/usage/features/agent-market
[docs-feat-auth]: https://lobehub.com/docs/usage/features/auth
[docs-feat-database]: https://lobehub.com/docs/usage/features/database
[docs-feat-local]: https://lobehub.com/docs/usage/features/local-llm
[docs-feat-mobile]: https://lobehub.com/docs/usage/features/mobile
[docs-feat-plugin]: https://lobehub.com/docs/usage/features/plugin-system
Expand Down Expand Up @@ -706,6 +745,8 @@ This project is [MIT](./LICENSE) licensed.
[github-trending-url]: https://trendshift.io/repositories/2256
[image-banner]: https://github.com/lobehub/lobe-chat/assets/28616219/9f155dff-4737-429f-9cad-a70a1a860c5f
[image-feat-agent]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670869-f1ffbf66-42b6-42cf-a937-9ce1f8328514.png
[image-feat-auth]: https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2
[image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/acf39ea2-74b3-46ae-8eb8-54a51f7f1d36
[image-feat-local]: https://github.com/lobehub/lobe-chat/assets/28616219/ca9a21bc-ea6c-4c90-bf4a-fa53b4fb2b5c
[image-feat-mobile]: https://gw.alipayobjects.com/zos/kitchen/R441AuFS4W/mobile.webp
[image-feat-plugin]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png
Expand Down
55 changes: 48 additions & 7 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@
- [`5` Text to Image 文生图](#5-text-to-image-文生图)
- [`6` 插件系统 (Function Calling)](#6-插件系统-function-calling)
- [`7` 助手市场 (GPTs)](#7-助手市场-gpts)
- [`8` 渐进式 Web 应用 (PWA)](#8-渐进式-web-应用-pwa)
- [`9` 移动设备适配](#9-移动设备适配)
- [`10` 自定义主题](#10-自定义主题)
- [`8` 支持本地 / 远程数据库](#8-支持本地--远程数据库)
- [`9` 支持多用户管理](#9-支持多用户管理)
- [`10` 渐进式 Web 应用 (PWA)](#10-渐进式-web-应用-pwa)
- [`11` 移动设备适配](#11-移动设备适配)
- [`12` 自定义主题](#12-自定义主题)
- [更多特性](#更多特性)
- [⚡️ 性能测试](#️-性能测试)
- [🛳 开箱即用](#-开箱即用)
Expand Down Expand Up @@ -268,9 +270,44 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地

</div>

[![][image-feat-database]][docs-feat-database]

### `8` [支持本地 / 远程数据库][docs-feat-database]

LobeChat 支持同时使用服务端数据库和本地数据库。根据您的需求,您可以选择合适的部署方案:

- 本地数据库:适合希望对数据有更多掌控感和隐私保护的用户。LobeChat 采用了 CRDT (Conflict-Free Replicated Data Type) 技术,实现了多端同步功能。这是一项实验性功能,旨在提供无缝的数据同步体验。
- 服务端数据库:适合希望更便捷使用体验的用户。LobeChat 支持 PostgreSQL 作为服务端数据库。关于如何配置服务端数据库的详细文档,请前往 [配置服务端数据库](https://lobehub.com/zh/docs/self-hosting/advanced/server-database)

无论您选择哪种数据库,LobeChat 都能为您提供卓越的用户体验。

<div align="right">

[![][back-to-top]](#readme-top)

</div>

[![][image-feat-auth]][docs-feat-auth]

### `9` [支持多用户管理][docs-feat-auth]

LobeChat 支持多用户管理,提供了两种主要的用户认证和管理方案,以满足不同需求:

- **next-auth**:LobeChat 集成了 `next-auth`,一个灵活且强大的身份验证库,支持多种身份验证方式,包括 OAuth、邮件登录、凭证登录等。通过 `next-auth`,您可以轻松实现用户的注册、登录、会话管理以及社交登录等功能,确保用户数据的安全性和隐私性。

- **Clerk**:对于需要更高级用户管理功能的用户,LobeChat 还支持 `Clerk`,一个现代化的用户管理平台。`Clerk` 提供了更丰富的功能,如多因素认证 (MFA)、白名单、用户管理、登录活动监控等。通过 `Clerk`,您可以获得更高的安全性和灵活性,轻松应对生产级的用户管理需求。

您可以根据自己的需求,选择合适的用户管理方案。

<div align="right">

[![][back-to-top]](#readme-top)

</div>

[![][image-feat-pwa]][docs-feat-pwa]

### `8` [渐进式 Web 应用 (PWA)][docs-feat-pwa]
### `10` [渐进式 Web 应用 (PWA)][docs-feat-pwa]

我们深知在当今多设备环境下为用户提供无缝体验的重要性。为此,我们采用了渐进式 Web 应用 [PWA](https://support.google.com/chrome/answer/9658361) 技术,
这是一种能够将网页应用提升至接近原生应用体验的现代 Web 技术。通过 PWA,LobeChat 能够在桌面和移动设备上提供高度优化的用户体验,同时保持轻量级和高性能的特点。
Expand All @@ -293,7 +330,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地

[![][image-feat-mobile]][docs-feat-mobile]

### `9` [移动设备适配][docs-feat-mobile]
### `11` [移动设备适配][docs-feat-mobile]

针对移动设备进行了一系列的优化设计,以提升用户的移动体验。目前,我们正在对移动端的用户体验进行版本迭代,以实现更加流畅和直观的交互。如果您有任何建议或想法,我们非常欢迎您通过 GitHub Issues 或者 Pull Requests 提供反馈。

Expand All @@ -305,7 +342,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地

[![][image-feat-theme]][docs-feat-theme]

### `10` [自定义主题][docs-feat-theme]
### `12` [自定义主题][docs-feat-theme]

作为设计工程师出身,LobeChat 在界面设计上充分考虑用户的个性化体验,因此引入了灵活多变的主题模式,其中包括日间的亮色模式和夜间的深色模式。
除了主题模式的切换,还提供了一系列的颜色定制选项,允许用户根据自己的喜好来调整应用的主题色彩。无论是想要沉稳的深蓝,还是希望活泼的桃粉,或者是专业的灰白,用户都能够在 LobeChat 中找到匹配自己风格的颜色选择。
Expand Down Expand Up @@ -650,7 +687,7 @@ $ pnpm run dev
</details>

Copyright © 2023 [LobeHub][profile-link]. <br />
This project is [MIT](./LICENSE) licensed.
This project is [Apache 2.0](./LICENSE) licensed.

<!-- LINK GROUP -->

Expand Down Expand Up @@ -685,6 +722,8 @@ This project is [MIT](./LICENSE) licensed.
[docs-docker]: https://lobehub.com/docs/self-hosting/platform/docker
[docs-env-var]: https://lobehub.com/docs/self-hosting/environment-variables
[docs-feat-agent]: https://lobehub.com/docs/usage/features/agent-market
[docs-feat-auth]: https://lobehub.com/docs/usage/features/auth
[docs-feat-database]: https://lobehub.com/docs/usage/features/database
[docs-feat-local]: https://lobehub.com/docs/usage/features/local-llm
[docs-feat-mobile]: https://lobehub.com/docs/usage/features/mobile
[docs-feat-plugin]: https://lobehub.com/docs/usage/features/plugin-system
Expand Down Expand Up @@ -727,6 +766,8 @@ This project is [MIT](./LICENSE) licensed.
[github-trending-url]: https://trendshift.io/repositories/2256
[image-banner]: https://github.com/lobehub/lobe-chat/assets/28616219/9f155dff-4737-429f-9cad-a70a1a860c5f
[image-feat-agent]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670869-f1ffbf66-42b6-42cf-a937-9ce1f8328514.png
[image-feat-auth]: https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2
[image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/acf39ea2-74b3-46ae-8eb8-54a51f7f1d36
[image-feat-local]: https://github.com/lobehub/lobe-chat/assets/28616219/ca9a21bc-ea6c-4c90-bf4a-fa53b4fb2b5c
[image-feat-mobile]: https://gw.alipayobjects.com/zos/kitchen/R441AuFS4W/mobile.webp
[image-feat-plugin]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png
Expand Down
Loading

0 comments on commit 4229e4f

Please sign in to comment.