Abp Vnext 的 Vue3 实现版本
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.
 
 
 
 
 
 

2.1 KiB

快速开始

先决条件

!!! info "Docker一键安装Mysql|Redis|Rabbitmq"

快速搭建必要环境,下载 [docker-compose.yaml](docker-compose.yaml) , 执行: docker-compose up -d

创建新项目

直接Clone

 git clone https://github.com/WangJunZzz/abp-vnext-pro.git

或者

GUI创建项目

后端

  • 修改 HttpApi.Host-> appsettings.json 配置
    • Mysql 连接字符串
    • Redis 连接字符串
    • RabbitMq(如果不需要启用设置为 false)
    • Es 地址即可(如果没有 es 也可以运行,只是前端 es 日志页面无法使用而已,不影响后端项目启动)
  • 修改 IdentityServer-> appsettings.json 数据库连接字符串
  • 修改 DbMigrator-> appsettings.json 数据库连接字符串
  • 右键单击.DbMigrator项目,设置为启动项目运行,按F5(或Ctrl + F5) 运行应用程序. 它将具有如下所示的输出:

!!! note 种子数据

初始的种子数据在数据库中创建了 admin 用户(密码为1q2w3E*) 用于登录应用程序. 所以, 对于新数据库至少使用 .DbMigrator 一次.

!!! note Ocelot网关

如果不需要使用Ocelot网关可以移除Lion.AbpPro.WebGateway项目,前端接口地址直接修改为Lion.AbpPro.HttpApi.Host的接口地址。

!!! note IdentityServer4

如果不需要使用IdentityServer4可以移除Lion.AbpPro.IdentityServer项目,请参考如何如何移除IdentityServer4 
  • 多项目启动(HttpApi.Host,IdentityServer,WebGateway),就能看到后台服务登陆页面,如下:

前端

安装npm包

pnmp install 

启动项目

npm run dev