Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Change codefences to bash
Browse files Browse the repository at this point in the history
  • Loading branch information
jongalloway committed Jan 29, 2022
1 parent d162110 commit 7f5c2fb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions docs/1. Create BackEnd API project.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,25 +102,25 @@ You will be using either a terminal window or the Visual Studio Package Manager

1. Install the required NuGet package for migrations:

```powershell
```bash
dotnet add package Microsoft.EntityFrameworkCore.Design --version 6.0.1
```

1. Install the EntityFramework global tool `dotnet-ef` using the following command:

```powershell
```bash
dotnet tool install -g dotnet-ef --version 6.0.1
```

1. If you receive a message that the tool is already installed, update to the newest version with the following command:

```powershell
```bash
dotnet tool update -g dotnet-ef --version 6.0.1
```

1. Run the following commands in the command prompt:

```powershell
```bash
dotnet ef migrations add Initial
dotnet ef database update
```
Expand Down Expand Up @@ -152,21 +152,21 @@ First, open the `Controllers` folder and take a quick look at the `WeatherForeca

1. Install the `aspnet-codegenerator` global tool by running the following command:

```powershell
```bash
dotnet tool install -g dotnet-aspnet-codegenerator --version 6.0.1
```

1. If you receive a message that the tool is already installed, update to the newest version with the following command:

```powershell
```bash
dotnet tool update -g dotnet-aspnet-codegenerator --version 6.0.1
```

> Note: You will need to close and reopen the console window to be able to use this tool.

1. Run the following in the project folder at the cmd line:

```powershell
```bash
dotnet aspnet-codegenerator controller -api -name SpeakersController -m Speaker -dc BackEnd.Models.ApplicationDbContext -outDir Controllers
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ In this session, we'll add the front end web site, with a public (anonymous) hom
### Adding the FrontEnd Project via the Command Line
1. Open a command prompt and navigate to the root `ConferencePlanner` directory.
1. Run the following command:
```console
```bash
dotnet new webapp -o FrontEnd
```
1. Next we'll need to add a reference to the ConferenceDTO project from the new FrontEnd project. From the command line, navigate to the FrontEnd project directory and execute the following command:
```console
```bash
dotnet add reference ../ConferenceDTO/ConferenceDTO.csproj
```
Expand Down
4 changes: 2 additions & 2 deletions docs/4. Add auth features.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ In this module we're going to add the capability for users to register and sign-
1. In Visual Studio, select the Tools -> NuGet Package Manager -> Package Manager Console

1. Run the following commands in the Package Manager Console
```console
```bash
Add-Migration CreateIdentitySchema
Update-Database
```

#### Command line

1. Run the following commands in the command prompt:
```console
```bash
dotnet build
dotnet ef migrations add CreateIdentitySchema
dotnet ef database update
Expand Down

0 comments on commit 7f5c2fb

Please sign in to comment.