2022-04-25 09:45:56 +08:00
|
|
|
|
[English](./README.md) | 简体中文
|
|
|
|
|
|
|
|
|
|
![](https://www.nocobase.com/images/demo/11.png)
|
|
|
|
|
|
|
|
|
|
NocoBase 是什么
|
|
|
|
|
----------
|
|
|
|
|
NocoBase 是一个极易扩展的开源无代码开发平台。
|
|
|
|
|
无需编程,使用 NocoBase 搭建自己的协作平台、管理系统,只需要几分钟时间。
|
|
|
|
|
|
|
|
|
|
官网:https://cn.nocobase.com/
|
|
|
|
|
|
|
|
|
|
在线体验:https://demo-cn.nocobase.com/new
|
|
|
|
|
|
|
|
|
|
为什么选择 NocoBase
|
|
|
|
|
----------
|
|
|
|
|
- 开源免费
|
2022-04-27 18:22:41 +08:00
|
|
|
|
- 采用 Apache-2.0 许可协议,不限制商业使用
|
2022-04-25 09:45:56 +08:00
|
|
|
|
- 拥有全部代码,私有化部署,保障数据私有和安全
|
|
|
|
|
- 针对实际需求自由扩展开发
|
|
|
|
|
- 具备良好的生态支持
|
|
|
|
|
- 无代码能力强
|
|
|
|
|
- 所见即所得的可视化配置
|
|
|
|
|
- 数据结构配置与界面配置分离
|
|
|
|
|
- 丰富的区块和操作任意组合
|
|
|
|
|
- 基于角色的访问权限
|
|
|
|
|
- 对开发者友好
|
|
|
|
|
- 微内核,灵活易扩展,具备健全的插件体系
|
|
|
|
|
- 基于 Node.js,使用主流框架和技术,包括 Koa、Sequelize、React、Formily、Ant Design 等
|
|
|
|
|
- 渐进式开发,上手难度低,对新人友好
|
|
|
|
|
- 不绑架、不强依赖,可任意组合使用或扩展,可用于现有项目中
|
|
|
|
|
|
|
|
|
|
说明
|
|
|
|
|
----------
|
|
|
|
|
|
|
|
|
|
如果你希望加入我们一起开发 NocoBase,或者探讨 NocoBase 未来发展,或者需要提供 NocoBase 使用上的帮助,欢迎通过邮件联系我们:hello@nocobase.com
|
|
|
|
|
|
|
|
|
|
或者添加我们的微信:
|
|
|
|
|
|
|
|
|
|
![](https://www.nocobase.com/images/wechat.png)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NocoBase 架构
|
|
|
|
|
----------
|
|
|
|
|
![](https://docs.nocobase.com/static/NocoBase.c9542b1f.png)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
环境要求
|
|
|
|
|
----------
|
|
|
|
|
|
|
|
|
|
Node:
|
|
|
|
|
|
|
|
|
|
- Node.js 12.20+
|
|
|
|
|
|
|
|
|
|
Database:
|
|
|
|
|
|
|
|
|
|
- PostgreSQL 10.x+
|
2022-04-25 19:05:33 +08:00
|
|
|
|
- MySQL 8.x+
|
|
|
|
|
- SQLite 3+
|
2022-04-25 09:45:56 +08:00
|
|
|
|
|
|
|
|
|
安装 & 运行
|
|
|
|
|
----------
|
|
|
|
|
|
|
|
|
|
## 通过 `create-nocobase-app` 创建项目
|
|
|
|
|
|
|
|
|
|
~~~shell
|
|
|
|
|
# 1. 创建项目
|
2022-04-25 19:05:33 +08:00
|
|
|
|
# SQLite
|
|
|
|
|
yarn create nocobase-app my-nocobase-app -d sqlite
|
|
|
|
|
# MySQL
|
|
|
|
|
yarn create nocobase-app my-nocobase-app -d mysql \
|
|
|
|
|
-e DB_HOST=mysql \
|
|
|
|
|
-e DB_PORT=3356 \
|
|
|
|
|
-e DB_DATABASE=nocobase \
|
|
|
|
|
-e DB_USER=nocobase \
|
|
|
|
|
-e DB_PASSWORD=nocobase
|
|
|
|
|
# PostgreSQL
|
|
|
|
|
yarn create nocobase-app my-nocobase-app -d postgres \
|
|
|
|
|
-e DB_HOST=postgres \
|
|
|
|
|
-e DB_PORT=5432 \
|
|
|
|
|
-e DB_DATABASE=nocobase \
|
|
|
|
|
-e DB_USER=nocobase \
|
|
|
|
|
-e DB_PASSWORD=nocobase
|
2022-04-25 09:45:56 +08:00
|
|
|
|
|
|
|
|
|
# 2. 切换目录
|
|
|
|
|
cd my-nocobase-app
|
|
|
|
|
|
2022-04-26 16:49:33 +08:00
|
|
|
|
# 📢 由于网络环境、系统配置等因素影响,接下来这一步骤可能需要十几分钟时间
|
2022-04-26 16:12:48 +08:00
|
|
|
|
# 📢 使用 SQLite 数据库时,需要配置 sqlite3_binary_host_mirror
|
|
|
|
|
yarn config set sqlite3_binary_host_mirror https://npmmirror.com/mirrors/sqlite3/
|
|
|
|
|
|
2022-04-25 22:05:05 +08:00
|
|
|
|
# 3. 安装依赖(使用阿里云镜像)
|
|
|
|
|
yarn install --registry=https://registry.npmmirror.com
|
2022-04-25 19:05:33 +08:00
|
|
|
|
|
|
|
|
|
# 4. 安装 NocoBase
|
2022-04-25 09:45:56 +08:00
|
|
|
|
yarn nocobase install --lang=zh-CN
|
|
|
|
|
|
2022-04-25 19:05:33 +08:00
|
|
|
|
# 5. 启动
|
2022-04-25 09:45:56 +08:00
|
|
|
|
yarn start
|
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
使用浏览器打开 http://localhost:8000,初始化账号和密码是 `admin@nocobase.com` 和 `admin123`。
|
|
|
|
|
|
|
|
|
|
## 参与贡献
|
|
|
|
|
|
|
|
|
|
- Fork 源代码到自己的仓库
|
|
|
|
|
- 修改源代码
|
|
|
|
|
- 提交 Pull Request
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# 替换为自己的仓库地址
|
|
|
|
|
git clone https://github.com/nocobase/nocobase.git
|
|
|
|
|
cd nocobase
|
|
|
|
|
cp .env.example .env
|
|
|
|
|
yarn install
|
|
|
|
|
yarn nocobase install
|
|
|
|
|
yarn start
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 打包
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# For all packages
|
|
|
|
|
yarn build
|
|
|
|
|
|
|
|
|
|
# For specific package
|
|
|
|
|
yarn build --scope @nocobase/database
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 测试
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# For all packages
|
|
|
|
|
yarn test
|
|
|
|
|
|
|
|
|
|
# For specific package
|
|
|
|
|
yarn test packages/<name>
|
|
|
|
|
```
|