sunmao-ui/README.md

91 lines
3.4 KiB
Markdown
Raw Permalink Normal View History

2021-12-28 14:03:42 +08:00
<div align="center">
2022-07-14 12:01:55 +08:00
<a href='https://sunmao-ui.com' target='_blank'>
<img src="./docs/images/logo.png" alt="logo" width="200" />
</a>
2022-04-28 15:58:16 +08:00
</div>
<div align="center">
2022-07-06 16:42:51 +08:00
<h1>Sunmao</h1>
2021-12-28 14:03:42 +08:00
</div>
<p align="center">
<img alt="Apache-2.0" src="https://img.shields.io/github/license/smartxworks/sunmao-ui"/>
<a href="https://github.com/smartxworks/sunmao-ui/issues">
<img src="https://img.shields.io/github/issues/smartxworks/sunmao-ui" alt="GitHub issues">
2021-12-28 14:03:42 +08:00
</a>
<img alt="Github Stars" src="https://badgen.net/github/stars/smartxworks/sunmao-ui" />
2022-07-14 12:01:55 +08:00
<a href="https://join.slack.com/t/sunmao/shared_invite/zt-1cgk81ebm-DyG9p2D5GNFS6vtbQwWj7A">
<img src="https://img.shields.io/badge/slack-@sunmao-purple.svg?logo=slack" alt="Join the chat at Slack">
</a>
2021-12-28 14:03:42 +08:00
</p>
2022-07-14 12:01:55 +08:00
Sunmao(榫卯 /suən mɑʊ/) is a front-end low-code framework. Through Sunmao, you can easily encapsulate any front-end UI components into low-code component libraries to build your own low-code UI development platform, making front-end development as tight as Sunmao("mortise and tenon" in Chinese).
2022-04-28 15:58:16 +08:00
[中文](./docs/zh/README.md)
2022-07-14 12:01:55 +08:00
## DEMO
The offcial website of Sunmao is developed by Sunmao, try it from here: [Sunmao website editor](https://sunmao-ui.com/dev.html)
2022-07-14 12:01:55 +08:00
We also provide an open-to-use template: [Sunmao Starter Kit](https://github.com/webzard-io/sunmao-start)
2022-07-14 12:01:55 +08:00
2022-04-28 15:58:16 +08:00
## Why Sunmao?
### Reactive rendering low-code framework
2022-04-28 15:58:16 +08:00
Sunmao chooses a reactive rendering solution that is easy to understand and has excellent performance, making Sunmao intuitive and quick to start.
2022-04-28 15:58:16 +08:00
### Powerful low-code GUI editor
Sunmao has a built-in GUI editor, which almost includes all the capabilities that a complete low-code editor should have.
2022-07-11 14:48:30 +08:00
### Extremely Extensible
2022-04-28 15:58:16 +08:00
Both the UI component library itself and the low-code editor support custom extensions. Developers can register various components to meet the needs of application and continue to use the existing visual design system.
2021-12-28 14:03:42 +08:00
2022-04-28 15:58:16 +08:00
### Type Safety
2021-12-28 14:03:42 +08:00
2022-04-28 15:58:16 +08:00
You are in type safety both when developing Sunmao components and when using the Sunmao editor. Sunmao heavily uses Typescript and JSON schema for a great type system.
2021-12-28 14:03:42 +08:00
2022-07-06 16:42:51 +08:00
For more details, read [Sunmao: A truly extensible low-code UI framework](./docs/en/what-is-sunmao.md).
2022-07-14 12:01:55 +08:00
## Tutorial
Sunmao users are divided into two roles, one is developer and the other is user.
2022-07-14 12:01:55 +08:00
The responsibilities of developers are similar to those of common front-end developers. They are responsible for developing UI components and encapsulating common UI components to Sunmao components. Developers need to write code to implement the logic of components.
2022-07-14 12:01:55 +08:00
The user's responsibility is to use the Sunmao components encapsulated by developers to build front-end applications in the Sunmao low-code editor. Users do not need front-end knowledge and programming skills. They can finish building the application through UI interaction only.
2022-07-14 12:01:55 +08:00
We have prepared two tutorials for user and developer. The user only needs to read the user's tutorial, while the developer must read both.
2022-07-14 12:01:55 +08:00
- [User's Tutorial](./docs/en/user.md)
- [Developer's Tutorial](./docs/en/developer.md)
2022-04-28 15:58:16 +08:00
## local development
2021-12-28 14:03:42 +08:00
2022-04-28 15:58:16 +08:00
### Start
2021-12-28 14:03:42 +08:00
```sh
yarn
cd packages/editor
yarn dev
```
2022-04-28 15:58:16 +08:00
### Test
2021-12-28 14:03:42 +08:00
```shell
yarn test:ci
```
2022-04-28 15:58:16 +08:00
### Build
2021-12-28 14:03:42 +08:00
```shell
2022-04-28 15:58:16 +08:00
yarn
2021-12-28 14:03:42 +08:00
```
2022-04-28 15:58:16 +08:00
> When you run the runtime or editor locally, if you modify the code of other packages, you must rebuild the modified package, otherwise, the runtime and editor will still run the old code.
## License
2021-12-28 14:03:42 +08:00
2022-07-11 16:34:18 +08:00
Apache-2.0