Open
Conversation
pviotti
approved these changes
Mar 4, 2020
workshop2/01-setup.md
Outdated
Comment on lines
46
to
47
| `yourname/shelter-backend` (on some teams developers prefix their branch | ||
| names with their usernames) or `shelter-backend`. |
Contributor
There was a problem hiding this comment.
Suggested change
| `yourname/shelter-backend` (on some teams developers prefix their branch | |
| names with their usernames) or `shelter-backend`. | |
| `shelter-backend` or `yourname/shelter-backend` (in some teams developers prefix their branch | |
| names with their usernames). |
workshop2/01-setup.md
Outdated
| Now we'll use [.NET Core CLI] to create the initial code for our | ||
| application: | ||
|
|
||
| 1. Using your favourite shell, go to the cloned repo location, for example, if you repository was called `happy-rover`, run `cd c:\CodessInTheClassroom\happy-rover` and run the following command to generate a web api project `dotnet new webapi -n backend`. This will create a new C# project with some example code for a weather forecast api, that we will override to create our animal shelter API. |
Contributor
There was a problem hiding this comment.
Suggested change
| 1. Using your favourite shell, go to the cloned repo location, for example, if you repository was called `happy-rover`, run `cd c:\CodessInTheClassroom\happy-rover` and run the following command to generate a web api project `dotnet new webapi -n backend`. This will create a new C# project with some example code for a weather forecast api, that we will override to create our animal shelter API. | |
| 1. Using your favourite shell, go to the cloned repo location (for example, if your repository was called `happy-rover`, run `cd c:\CodessInTheClassroom\happy-rover`) and run the following command to generate a web API project: `dotnet new webapi -n backend`. This will create a new C# project with some example code for a weather forecast api, that we will replace to create our animal shelter API. |
|
|
||
| 1. Using your favourite shell, go to the cloned repo location, for example, if you repository was called `happy-rover`, run `cd c:\CodessInTheClassroom\happy-rover` and run the following command to generate a web api project `dotnet new webapi -n backend`. This will create a new C# project with some example code for a weather forecast api, that we will override to create our animal shelter API. | ||
| 2. Run `code -r c:\CodessInTheClassroom\happy-rover\backend` to open the new created project in Visual Studio Code. | ||
| If you're interested in what other options you can pass when creating a project using `.NET Core CLI` , you can [read more here](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new). |
Contributor
There was a problem hiding this comment.
this line is related to the dotnet new command, so I'd move it after point 1 (and maybe format it as a note)
something like this
workshop2/01-setup.md
Outdated
| 1. Using your favourite shell, go to the cloned repo location, for example, if you repository was called `happy-rover`, run `cd c:\CodessInTheClassroom\happy-rover` and run the following command to generate a web api project `dotnet new webapi -n backend`. This will create a new C# project with some example code for a weather forecast api, that we will override to create our animal shelter API. | ||
| 2. Run `code -r c:\CodessInTheClassroom\happy-rover\backend` to open the new created project in Visual Studio Code. | ||
| If you're interested in what other options you can pass when creating a project using `.NET Core CLI` , you can [read more here](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new). | ||
| 3. Let's test now the generated web api, hit `Ctrl+F5` in Visual Studio Code, and it will compile and run the project. If there are no errors, in a browser go to the following URL: [https://localhost:5001/WeatherForecast](https://localhost:5001/WeatherForecast), and the server will return a json document with the weather forecat for the next week. |
Contributor
There was a problem hiding this comment.
Suggested change
| 3. Let's test now the generated web api, hit `Ctrl+F5` in Visual Studio Code, and it will compile and run the project. If there are no errors, in a browser go to the following URL: [https://localhost:5001/WeatherForecast](https://localhost:5001/WeatherForecast), and the server will return a json document with the weather forecat for the next week. | |
| 3. Let's test now the generated web API: hit `Ctrl+F5` in Visual Studio Code, and it will compile and run the project. If there are no errors, open the following URL in a browser: [https://localhost:5001/WeatherForecast](https://localhost:5001/WeatherForecast), and the server will return a JSON document with the weather forecast for the next week. |
optionally mention you can do dotnet run from command line as well
workshop2/01-setup.md
Outdated
| We'll commit and push this code to our development branch to have a start point. To do that: | ||
| 1. [Read the guidance on staging changes and committing in the Git cheatsheet](../git-cheatsheet.md#commit). | ||
|
|
||
| For example, you could open a new terminal using `Terminal → New Terminal` and run: |
Contributor
There was a problem hiding this comment.
(at this point they have already opened a PoSh or cmd prompt, so this might be a bit confusing)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added set up instructions for creating a webapi using dotnet cli