six-net / Samples

An example application for the EZNEW.NET development framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Samples

示例应用

快速开始

  1. 下载安装 .NetCore5.0 SDK

  2. 下载安装 Visual Studio 2019

  3. EZNEW备用Nuget包地址:http://nuget.eznew.net/v3/index.json

  4. 下载项目:git clone https://github.com/eznew-net/Samples.git

  5. 默认使用MySQL8+数据库,在/src/api/Application/Api.Console/appsettings.json中配置数据库连接

  6. 创建数据库

    • 使用EF Migration创建数据库

      1. 打开命令行工具cmd.exe

      2. 安装ef工具:dotnet tool install --global dotnet-ef

      3. 导航到路径 /src/api/Application/App.EntityMigration 并运行命令: dotnet ef migrations add init

      4. 运行命令:dotnet ef database update

  7. 编译运行 Api.Console

  8. 导航到路径 src/web,运行命令 npm install cnpm -g --registry=https://registry.nlark.com

  9. 运行命令 cnpm install

  10. 运行命令 npm run serve

  11. 使用默认用户名密码登录:admin and default Password:admin

About

An example application for the EZNEW.NET development framework

License:MIT License


Languages

Language:C# 51.2%Language:Vue 40.9%Language:SCSS 5.5%Language:CSS 1.9%Language:Batchfile 0.3%Language:HTML 0.2%Language:Dockerfile 0.1%