zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.API
2023-12-05 17:22:48 +08:00
..
.config 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
Constants 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
Controllers 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
Extensions 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
Properties 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
Resources 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
appsettings.Development.json 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
appsettings.json 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
appsettings.Production.json 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
DependencyRegistrar.cs 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
nlog.config 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
Program.cs 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
README.md 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
Startup.cs 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00
ZeroFramework.DeviceCenter.API.csproj 零度框架 8.0 版本 2023-12-05 17:22:48 +08:00

RabbitMQ For Docker

docker pull rabbitmq:management docker run -d -p 5672:5672 -p 15672:15672 --name rabbitmq rabbitmq:management

Microservices Endpoints

IdentityServer : https://localhost:5001 DeviceCenterAPI : https://localhost:6001

Develop ASP.NET Core apps using a file watcher

dotnet watch --project .\Services\DeviceCenter\ZeroFramework.DeviceCenter.API run dotnet watch --project .\Services\Identity\ZeroFramework.IdentityServer.API run

Create DbContext Migrations

Drop-Database -Context DeviceCenterDbContext -Project ZeroFramework.DeviceCenter.Infrastructure -StartupProject ZeroFramework.DeviceCenter.Infrastructure -Confirm:$false Drop-Database -Context ApplicationDbContext -Project ZeroFramework.IdentityServer.API -StartupProject ZeroFramework.IdentityServer.API -Confirm:$false

Remove-Migration -Context PersistedGrantDbContext -Project ZeroFramework.IdentityServer.API -StartupProject ZeroFramework.IdentityServer.API Remove-Migration -Context ConfigurationDbContext -Project ZeroFramework.IdentityServer.API -StartupProject ZeroFramework.IdentityServer.API Remove-Migration -Context ApplicationDbContext -Project ZeroFramework.IdentityServer.API -StartupProject ZeroFramework.IdentityServer.API Remove-Migration -Context DeviceCenterDbContext -Project ZeroFramework.DeviceCenter.Infrastructure -StartupProject ZeroFramework.DeviceCenter.Infrastructure

Add-Migration InitialCreate -c PersistedGrantDbContext -o Migrations/PersistedGrantMigrations -Project ZeroFramework.IdentityServer.API -StartupProject ZeroFramework.IdentityServer.API Add-Migration InitialCreate -c ConfigurationDbContext -o Migrations/ConfigurationMigrations -Project ZeroFramework.IdentityServer.API -StartupProject ZeroFramework.IdentityServer.API Add-Migration InitialCreate -c ApplicationDbContext -o Migrations/ApplicationMigrations -Project ZeroFramework.IdentityServer.API -StartupProject ZeroFramework.IdentityServer.API Add-Migration InitialCreate -Context DeviceCenterDbContext -Project ZeroFramework.DeviceCenter.Infrastructure -StartupProject ZeroFramework.DeviceCenter.Infrastructure

Update-Database -Context PersistedGrantDbContext -Project ZeroFramework.IdentityServer.API -StartupProject ZeroFramework.IdentityServer.API Update-Database -Context ConfigurationDbContext -Project ZeroFramework.IdentityServer.API -StartupProject ZeroFramework.IdentityServer.API Update-Database -Context ApplicationDbContext -Project ZeroFramework.IdentityServer.API -StartupProject ZeroFramework.IdentityServer.API Update-Database -Context DeviceCenterDbContext -Project ZeroFramework.DeviceCenter.Infrastructure -StartupProject ZeroFramework.DeviceCenter.Infrastructure