|
1 | | -# .NET on Codespaces |
| 1 | +# GitHub Codespaces ♥️ .NET 8 |
2 | 2 |
|
3 | | -Copy for Claudia to write |
| 3 | +Want to try out the latest performance improvements coming with .NET 8 for web development? |
| 4 | + |
| 5 | +This repo builds a Weather API using Minimal APIs, opens Swagger so you can call and test the API, and displays the data in a web application using Blazor with .NET 8. |
| 6 | + |
| 7 | +We've given you both a frontend and backend to play around with and where you go from here is up to you! |
| 8 | + |
| 9 | +Everything you do here is contained within this one codespace. There is no repository on GitHub yet. If and when you’re ready you can click "Publish Branch" and we’ll create your repository and push up your project. If you were just exploring then and have no further need for this code then you can simply delete your codespace and it's gone forever. |
| 10 | + |
| 11 | +### Run Options |
4 | 12 |
|
5 | 13 | [](https://codespaces.new/bradygaster/dotnet-codespace) |
6 | 14 | [](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/bradygaster/dotnet-codespace) |
7 | 15 |
|
| 16 | +You can also run this repository locally by following these instructions: |
| 17 | +1. Clone the repo to your local machine `git clone https://github.com/bradygaster/dotnet-codespace` |
| 18 | +1. Open repo in VS Code |
| 19 | + |
8 | 20 | ## Getting started |
9 | 21 |
|
10 | 22 | 1. **📤 One-click setup**: [Open a new Codespace](https://codespaces.new/bradygaster/dotnet-codespace), giving you a fully configured cloud developer environment. |
11 | | -3. **▶️ Run, one-click again**: Use VS Code's built-in *Run* command and open the forwarded ports *8080* and *8081* in your browser. |
12 | | -5. **🔄 Iterate quickly:** Codespaces updates the server on each save, and VS Code's debugger lets you dig into the code execution. |
13 | | - |
14 | | -## Run |
15 | | - |
16 | | -This repository can be run in Codespaces, in Dev Containers, or locally on your development machine. |
| 23 | +2. **▶️ Run all, one-click again**: Use VS Code's built-in *Run* command and open the forwarded ports *8080* and *8081* in your browser. |
17 | 24 |
|
18 | | -### Run in Codespaces |
| 25 | + |
19 | 26 |
|
20 | | -1. Click here to open in GitHub Codespaces |
| 27 | +3. The Blazor web app and Swagger tabs should now be open on your browser. On Swagger, click "Try it out" and "Execute" to call and test the API. |
21 | 28 |
|
22 | | - [](https://codespaces.new/bradygaster/dotnet-codespace) |
| 29 | + |
| 30 | + |
23 | 31 |
|
24 | | -### Run in Dev Container |
25 | 32 |
|
26 | | -1. Click here to open in Dev Container |
| 33 | +4. **🔄 Iterate quickly:** Codespaces updates the server on each save, and VS Code's debugger lets you dig into the code execution. |
27 | 34 |
|
28 | | - [](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/bradygaster/dotnet-codespace) |
| 35 | +5. To stop running, return to VS Code, and click Stop twice in the debug toolbar. |
29 | 36 |
|
| 37 | + |
30 | 38 |
|
31 | | -### Run Locally |
32 | | - |
33 | | -1. Clone the repo to your local machine `git clone https://github.com/bradygaster/dotnet-codespace` |
34 | | -1. Open repo in VS Code |
35 | 39 |
|
36 | 40 | ## Contributing |
37 | 41 |
|
|
0 commit comments