|
# NewLife.Cube.Soybean - Vue 3 + Soybean Admin + Element Plus + Vite 7 skin for NewLife.Cube



<!-- lang:start -->
🌐 [简体中文](/NewLife/NewLife.Cube.Soybean/Blob/master/README.zh-CN.md) | [繁體中文](/NewLife/NewLife.Cube.Soybean/Blob/master/README.zh-TW.md) | [Español](/NewLife/NewLife.Cube.Soybean/Blob/master/README.es.md) | [Deutsch](/NewLife/NewLife.Cube.Soybean/Blob/master/README.de.md) | [日本語](/NewLife/NewLife.Cube.Soybean/Blob/master/README.ja.md) | [Français](/NewLife/NewLife.Cube.Soybean/Blob/master/README.fr.md) | [Português](/NewLife/NewLife.Cube.Soybean/Blob/master/README.pt.md) | [Русский](/NewLife/NewLife.Cube.Soybean/Blob/master/README.ru.md) | [한국어](/NewLife/NewLife.Cube.Soybean/Blob/master/README.ko.md) | [العربية](/NewLife/NewLife.Cube.Soybean/Blob/master/README.ar.md)
<!-- lang:end -->
The **Soybean skin** for the third-generation Web API front end of Cube (NewLife.Cube), delivered as a standalone NuGet package and repository. Built with **Vue 3 + Soybean Admin + Element Plus + Vite 7**, it renders metadata-driven lists and forms and follows the Cube skin design specification.
## Highlights
- Out of the box: reference the NuGet package, run `AddCube` + `UseCube`, and the embedded admin console is ready; no physical front-end files are required.
- Metadata driven: lists, forms, search and detail pages are rendered from backend `meta`; adding an entity needs no front-end work.
- Shared npm core: uses `@newlifex/cube` for API, page logic, field mapping and auth; the framework-agnostic core is shared by all Cube skins.
- Skin switching: Cube auto-discovers referenced skin packages; switch with the `SpaSkin` setting.
## Quick Start
Reference `NewLife.Cube` and `NewLife.Cube.Soybean`, then start the host:
```bash
dotnet add package NewLife.Cube
dotnet add package NewLife.Cube.Soybean
```
```csharp
services.AddCube();
var app = builder.Build();
app.UseCube(app.Environment);
app.MapControllers();
app.Run();
```
## Local Development
Start the demo backend and the Vite dev server:
```bash
# backend (SQLite, http://localhost:7116)
dotnet run --project CubeDemo/SoybeanCubeDemo.csproj
# frontend (http://localhost:9527)
cd NewLife.Cube.Soybean/web
pnpm install
pnpm dev
```
### Local boundary channel
.NET: `dotnet build 魔方Soybean.slnx -p:UseLocalNewLifeSource=true` uses the sibling `../NewLife.Cube` source. npm: `pnpm link:local` / `pnpm unlink:local` switches to `../NewLife.Cube/packages/cube` and back.
## Build and Test
Build the web assets, run checks and pack the NuGet package:
```bash
cd NewLife.Cube.Soybean/web
pnpm build
pnpm test:unit
dotnet build 魔方Soybean.slnx -c Release
dotnet pack NewLife.Cube.Soybean/NewLife.Cube.Soybean.csproj -c Release -o out
```
## Release
CI builds the web assets, embeds `wwwroot` into the DLL, then packs and publishes `NewLife.Cube.Soybean` to NuGet.
## Related repositories
| Repository | Description |
| --- | --- |
| [NewLife.Cube](https://github.com/NewLifeX/NewLife.Cube) | Cube core, shared npm package `@newlifex/cube` and skin design specification. |
| [NewLife.Cube.React](https://github.com/NewLifeX/NewLife.Cube.React) | React skin (React 19 + Ant Design). |
| [NewLife.Cube.ArcoVue](https://github.com/NewLifeX/NewLife.Cube.ArcoVue) | Arco Design Vue skin. |
| [NewLife.Cube.Soybean](https://github.com/NewLifeX/NewLife.Cube.Soybean) | Soybean Admin skin. |
## License
MIT
|