skoruba / Duende.IdentityServer.Admin

The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
Apache License 2.0
549 stars 194 forks source link

Data initialization problem #163

Open EminemJK opened 1 year ago

EminemJK commented 1 year ago

How do I migrate or initialize the database for the first time? Is there any guidance document?

senseicz commented 1 year ago

@EminemJK I was battling with this a bit today but turned out to be fairly easy: 1) scaffold new project using Skoruba.Duende.IdentityServer.Admin.Templates::1.2.0 template 2) optionally, if you do not want to use default localdb database, modify connection strings in [yourProjectName].Admin and [yourProjectName].STS.Identity projects 3) start [yourProjectName].STS.Identity project 4) start [yourProjectName].Admin project - this by default run migrations and seed some initial data.