示例应用
-
下载安装 .NetCore5.0 SDK
-
下载安装 Visual Studio 2019
-
EZNEW备用Nuget包地址:http://nuget.eznew.net/v3/index.json
-
下载项目:git clone https://github.com/eznew-net/Samples.git
-
默认使用MySQL8+数据库,在/src/api/Application/Api.Console/appsettings.json中配置数据库连接
-
创建数据库
-
-
打开命令行工具cmd.exe
-
安装ef工具:dotnet tool install --global dotnet-ef
-
导航到路径 /src/api/Application/App.EntityMigration 并运行命令: dotnet ef migrations add init
-
运行命令:dotnet ef database update
-
-
-
编译运行 Api.Console
-
导航到路径 src/web,运行命令 npm install cnpm -g --registry=https://registry.nlark.com
-
运行命令 cnpm install
-
运行命令 npm run serve
-
使用默认用户名密码登录:admin and default Password:admin