Ebook ltd ASP.NET MVC 6 application, powered by Microsoft, demonstrating a single-process (monolithic) application architecture and deployment mode
The first time you run the application, it will seed both databases with data such that you should see products in the store, and you should be able to log in using the admin@ebook.lk with Password: Ebook@1234 Admin password and email seed from "AppDBInitializer" "Data/AppDBInitializer.cs"
- Ensure your connection strings in Program.cs point to a local SQL Server instance.
//DbContext configuration
builder.Services.AddDbContext<AppDbContext>(options => options.UseMySql(
"server=127.0.0.1;user=ad_book;password=<password goes here>;port=3306;database=ad_book;Connect Timeout=5;",
new MariaDbServerVersion(new Version(10, 4, 19))
));
- Ensure the tool EF was already installed
dotnet tool update --global dotnet-ef
- Open a command prompt in the Web folder and execute the following commands:
dotnet restore
dotnet tool restore
- Run the application
Admin Username: admin@ebook.lk
Password: Ebook@1234