Skip to content

Commit 3a48dfc

Browse files
authored
Fix list items in README (dotnet-architecture#518)
1 parent 1131617 commit 3a48dfc

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

README.md

+29-28
Original file line numberDiff line numberDiff line change
@@ -57,63 +57,64 @@ You can also run the samples in Docker (see below).
5757

5858
1. Update `Startup.cs`'s `ConfigureDevelopmentServices` method as follows:
5959

60-
```
61-
public void ConfigureDevelopmentServices(IServiceCollection services)
62-
{
63-
// use in-memory database
64-
//ConfigureTestingServices(services);
60+
```csharp
61+
public void ConfigureDevelopmentServices(IServiceCollection services)
62+
{
63+
// use in-memory database
64+
//ConfigureTestingServices(services);
6565
66-
// use real database
67-
ConfigureProductionServices(services);
66+
// use real database
67+
ConfigureProductionServices(services);
6868

69-
}
70-
```
69+
}
70+
```
7171

7272
1. Ensure your connection strings in `appsettings.json` point to a local SQL Server instance.
7373
1. Ensure the tool EF was already installed. You can find some help [here](https://docs.microsoft.com/ef/core/miscellaneous/cli/dotnet)
7474
75-
```
76-
dotnet tool install --global dotnet-ef
77-
```
75+
```
76+
dotnet tool install --global dotnet-ef
77+
```
7878

7979
1. Open a command prompt in the Web folder and execute the following commands:
8080

81-
```
82-
dotnet restore
83-
dotnet tool restore
84-
dotnet ef database update -c catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj
85-
dotnet ef database update -c appidentitydbcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj
86-
```
81+
```
82+
dotnet restore
83+
dotnet tool restore
84+
dotnet ef database update -c catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj
85+
dotnet ef database update -c appidentitydbcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj
86+
```
8787

88-
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.
88+
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.
8989

9090
1. Run the application.
9191

92-
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 [email protected] account.
92+
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.
9393

94-
Note: If you need to create migrations, you can use these commands:
94+
Note: If you need to create migrations, you can use these commands:
9595

96-
```
97-
-- create migration (from Web folder CLI)
98-
dotnet ef migrations add InitialModel --context catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj -o Data/Migrations
96+
```
97+
-- create migration (from Web folder CLI)
98+
dotnet ef migrations add InitialModel --context catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj -o Data/Migrations
9999

100-
dotnet ef migrations add InitialIdentityModel --context appidentitydbcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj -o Identity/Migrations
101-
```
100+
dotnet ef migrations add InitialIdentityModel --context appidentitydbcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj -o Identity/Migrations
101+
```
102102

103103
## Running the sample using Docker
104104

105105
You can run the Web sample by running these commands from the root folder (where the .sln file is located):
106106

107107
```
108-
docker-compose build
109-
docker-compose up
108+
docker-compose build
109+
docker-compose up
110110
```
111111

112112
You should be able to make requests to localhost:5106 for the Web project, and localhost:5200 for the Public API project once these commands complete. If you have any problems, especially with login, try from a new guest or incognito browser instance.
113113

114114
You can also run the applications by using the instructions located in their `Dockerfile` file in the root of each project. Again, run these commands from the root of the solution (where the .sln file is located).
115115

116116
## Community Extensions
117+
117118
We have some great contributions from the community, and while these aren't maintained by Microsoft we still want to highlight them.
118119

119120
[eShopOnWeb VB.NET](https://github.com/VBAndCs/eShopOnWeb_VB.NET) by Mohammad Hamdy Ghanem

0 commit comments

Comments
 (0)