From 9bc226d257d4378e03e6e54902f5f1944b754ae3 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Thu, 7 Feb 2019 09:07:53 -0500 Subject: [PATCH] Update README to 2.2 --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 27329da..2649f1d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Sample ASP.NET Core reference application, powered by Microsoft, demonstrating a single-process (monolithic) application architecture and deployment model. -This reference application is meant to support the free .PDF download ebook: [Architecting Modern Web Applications with ASP.NET Core and Azure](https://aka.ms/webappebook), updated to **ASP.NET Core 2.1**. +This reference application is meant to support the free .PDF download ebook: [Architecting Modern Web Applications with ASP.NET Core and Azure](https://aka.ms/webappebook), updated to **ASP.NET Core 2.2**. You can also read the book in online pages at the .NET docs here: https://docs.microsoft.com/en-us/dotnet/standard/modern-web-apps-azure-architecture/ @@ -14,10 +14,9 @@ The **eShopOnWeb** sample is related to the [eShopOnContainers](https://github.c The goal for this sample is to demonstrate some of the principles and patterns described in the [eBook](https://aka.ms/webappebook). It is not meant to be an eCommerce reference application, and as such it does not implement many features that would be obvious and/or essential to a real eCommerce application. > ### VERSIONS -> #### The `master` branch is currently running ASP.NET Core 2.1. +> #### The `master` branch is currently running ASP.NET Core 2.2. > #### Older versions are tagged. - ## Topics (eBook TOC) - Introduction @@ -56,9 +55,9 @@ You can also run the samples in Docker (see below). } ``` -2. Ensure your connection strings in `appsettings.json` point to a local SQL Server instance. +1. Ensure your connection strings in `appsettings.json` point to a local SQL Server instance. -3. Open a command prompt in the Web folder and execute the following commands: +1. Open a command prompt in the Web folder and execute the following commands: ``` dotnet restore @@ -68,10 +67,12 @@ dotnet ef database update -c appidentitydbcontext -p ../Infrastructure/Infrastru These commands will create two separate databases, one for the store's catalog data and shopping cart information, and one for the app's user credentials and identity data. -4. Run the application. +1. Run the application. + 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 demouser@microsoft.com account. Note: If you need to create migrations, you can use these commands: + ``` -- create migration (from Web folder CLI) dotnet ef migrations add InitialModel --context catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj -o Data/Migrations