Update README to 2.2
This commit is contained in:
13
README.md
13
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.
|
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:
|
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/
|
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.
|
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
|
> ### 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.
|
> #### Older versions are tagged.
|
||||||
|
|
||||||
|
|
||||||
## Topics (eBook TOC)
|
## Topics (eBook TOC)
|
||||||
|
|
||||||
- Introduction
|
- 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
|
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.
|
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.
|
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:
|
Note: If you need to create migrations, you can use these commands:
|
||||||
|
|
||||||
```
|
```
|
||||||
-- create migration (from Web folder CLI)
|
-- create migration (from Web folder CLI)
|
||||||
dotnet ef migrations add InitialModel --context catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj -o Data/Migrations
|
dotnet ef migrations add InitialModel --context catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj -o Data/Migrations
|
||||||
|
|||||||
Reference in New Issue
Block a user