# Samples **Repository Path**: six-net/Samples ## Basic Information - **Project Name**: Samples - **Description**: An example application for the EZNEW.NET development framework - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-16 - **Last Updated**: 2024-01-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Samples 示例应用 # 快速开始 1. 下载安装 [.NetCore5.0 SDK](https://dotnet.microsoft.com/download/dotnet-core/5.0) 2. 下载安装 [Visual Studio 2019](https://visualstudio.microsoft.com/zh-hans/downloads/) 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创建数据库](https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/?tabs=dotnet-core-cli) 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