这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
colin 93c3dfd9a3 update: UPDATE Dockerfile 2 years ago
..
.template.config 🔧 fix(templates): 修改 groupIdentity 为 "LINGYUN.Abp" 以优化模板配置设置 2 years ago
host/PackageName.CompanyName.ProjectName.AIO.Host update: UPDATE Dockerfile 2 years ago
migrations upgrade: upgrade abp framework to 9.0.4 2 years ago
src upgrade: upgrade abp framework to 9.0.4 2 years ago
tests upgrade: upgrade abp framework to 9.0.4 2 years ago
Directory.Build.props feat(aspnet-core/templates/aio): 添加全功能模板项目文件以支持 .NET 8.0 版本构建 2 years ago
Directory.Packages.props 🔧 chore(Directory.Packages.props): 更新多个包版本至最新以确保项目依赖的稳定性和安全性 2 years ago
NuGet.Config feat(aspnet-core/templates/aio): 添加全功能模板项目文件以支持 .NET 8.0 版本构建 2 years ago
README.md 📚 docs: 更新文档,添加 labp CLI 工具安装和项目创建的说明。 2 years ago
README.zh-CN.md 📚 docs: 更新文档,添加 labp CLI 工具安装和项目创建的说明。 2 years ago
common.props feat(aspnet-core/templates/aio): 添加全功能模板项目文件以支持 .NET 8.0 版本构建 2 years ago
configureawait.props feat(aspnet-core/templates/aio): 添加全功能模板项目文件以支持 .NET 8.0 版本构建 2 years ago

README.md

LINGYUN.Abp.Templates

English | 中文

Introduction

LINGYUN.Abp.Templates provides two types of project templates based on ABP Framework:

  1. Microservice Template: A complete microservice architecture template with distributed services.
  2. All-in-One Template: A single-application template that combines all services into one project.

Features

Common Features

  • Integrated authentication (IdentityServer4/OpenIddict)
  • Database integration (multiple databases supported)
  • Unified configuration management
  • Distributed event bus support
  • Background job processing

Microservice Template Features

  • Complete microservice project structure
  • Service discovery and registration
  • Distributed deployment support

All-in-One Template Features

  • Simplified deployment
  • Easier maintenance
  • Lower resource requirements

How to Use

Install labp CLI Tool

dotnet tool install --global LINGYUN.Abp.Cli

Install Templates

# Install Microservice Template
dotnet new install LINGYUN.Abp.MicroService.Templates

# Install All-in-One Template
dotnet new install LINGYUN.Abp.AllInOne.Templates

Create New Project

For Microservice Project

# Short name: lam (LINGYUN Abp Microservice)
labp create YourCompanyName.YourProjectName -pk YourPackageName -t lam -o /path/to/output --dbms MySql --cs "Server=127.0.0.1;Database=Platform-V70;User Id=root;Password=123456;SslMode=None" --no-random-port

For All-in-One Project

# Short name: laa (LINGYUN Abp AllInOne)
labp create YourCompanyName.YourProjectName -pk YourPackageName -t laa -o /path/to/output --dbms MySql --cs "Server=127.0.0.1;Database=Platform-V70;User Id=root;Password=123456;SslMode=None" --no-random-port

How to Run

After creating your project, you can run it using the following command:

For Microservice Project

cd /path/to/output/host/YourPackageName.YourCompanyName.YourProjectName.HttpApi.Host
dotnet run --launch-profile "YourPackageName.YourCompanyName.YourProjectName.Development"

For All-in-One Project

cd /path/to/output/host/YourPackageName.YourCompanyName.YourProjectName.AIO.Host
dotnet run --launch-profile "YourPackageName.YourCompanyName.YourProjectName.Development"

How to Package and Publish

  1. Clone the Project
git clone <repository-url>
cd <repository-path>/aspnet-core/templates/content
  1. Modify Version Edit the project files to update versions:
    • For Microservice: ../PackageName.CompanyName.ProjectName.csproj
    • For All-in-One: ../PackageName.CompanyName.ProjectName.AIO.csproj
<Version>8.3.0</Version>
  1. Execute Packaging Script
# Windows PowerShell
.\pack.ps1

# PowerShell Core (Windows/Linux/macOS)
pwsh pack.ps1

The script will prompt you to choose which template to package:

  1. Microservice Template
  2. All-in-One Template
  3. Both Templates

Supported Databases

  • SqlServer
  • MySQL
  • PostgreSQL
  • Oracle
  • SQLite

Notes

  • Ensure .NET SDK 8.0 or higher is installed
  • Choose the appropriate template based on your needs:
    • Microservice Template: For large-scale distributed applications
    • All-in-One Template: For smaller applications or simpler deployment requirements
  • Pay attention to NuGet publish address and key when packaging
  • Complete testing is recommended before publishing