Contact Manager is an application developed in aspnet core MVC responsible for controlling and managing cell phone contacts
- Visual Studio 2022 or Visual Studio Code
- .Net 6.0 or highter
- MariaDB 10.6 or highter
Change de connection string in appsettings.json
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"ConnectionString": {
"MariaDB": "Server=10.25.3.19;DataBase=db;Uid=root;Pwd=root;"
}
}
Open cmd or teminal control to migrate database (if not exists migrations in your directory) execute
add-migration "Name of you migration"
before just update your database and is done
That will execute the application to
update-database
Open cmd or teminal control to seed te user Username = andremirandacardoso02@gmail.com Password = 12345
dotnet run seeddata
That will execute the application to
dotnet run urls=https://localhost:5001