Skip to content

Commit 4d3e0b3

Browse files
committed
edited readme
1 parent bfcd725 commit 4d3e0b3

File tree

1 file changed

+9
-58
lines changed

1 file changed

+9
-58
lines changed

readme.md

Lines changed: 9 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
# .NET and Redis on Azure Container Apps
1+
# .NET on Codespaces
22

3-
This sample will show you how to create a multi-container app topology in [Azure Container Apps](https://learn.microsoft.com/en-us/azure/container-apps/) using the [Azure Developer CLI](https://aka.ms/azd/install). Here's a 5-minute video that walks you through a demo of using the repo to set it up yourself.
3+
Copy for Claudia to write
44

5-
[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/ob8c2pQVw7c/0.jpg)](https://www.youtube.com/embed/ob8c2pQVw7c)
6-
7-
[![Open in GitHub Codespaces](https://img.shields.io/static/v1?style=for-the-badge&label=GitHub+Codespaces&message=Open&color=lightgrey&logo=github)](https://codespaces.new/bradygaster/dotnet-redis-pubsub)
8-
[![Open in Dev Container](https://img.shields.io/static/v1?style=for-the-badge&label=Dev+Container&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/bradygaster/dotnet-redis-pubsub)
5+
[![Open in GitHub Codespaces](https://img.shields.io/static/v1?style=for-the-badge&label=GitHub+Codespaces&message=Open&color=lightgrey&logo=github)](https://codespaces.new/bradygaster/dotnet-codespace)
6+
[![Open in Dev Container](https://img.shields.io/static/v1?style=for-the-badge&label=Dev+Container&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/bradygaster/dotnet-codespace)
97

108
## Getting started
119

12-
1. **📤 One-click setup**: [Open a new Codespace](https://codespaces.new/bradygaster/dotnet-redis-pubsub), giving you a fully configured cloud developer environment.
13-
3. **▶️ Run, one-click again**: Use VS Code's built-in *Run* command and open the forwarded port *8080* in your browser.
10+
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.
1412
5. **🔄 Iterate quickly:** Codespaces updates the server on each save, and VS Code's debugger lets you dig into the code execution.
1513

1614
## Run
@@ -21,67 +19,20 @@ This repository can be run in Codespaces, in Dev Containers, or locally on your
2119

2220
1. Click here to open in GitHub Codespaces
2321

24-
[![Open in GitHub Codespaces](https://img.shields.io/static/v1?style=for-the-badge&label=GitHub+Codespaces&message=Open&color=lightgrey&logo=github)](https://codespaces.new/bradygaster/dotnet-redis-pubsub)
22+
[![Open in GitHub Codespaces](https://img.shields.io/static/v1?style=for-the-badge&label=GitHub+Codespaces&message=Open&color=lightgrey&logo=github)](https://codespaces.new/bradygaster/dotnet-codespace)
2523

2624
### Run in Dev Container
2725

2826
1. Click here to open in Dev Container
2927

30-
[![Open in Dev Container](https://img.shields.io/static/v1?style=for-the-badge&label=Dev+Container&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/bradygaster/dotnet-redis-pubsub)
28+
[![Open in Dev Container](https://img.shields.io/static/v1?style=for-the-badge&label=Dev+Container&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/bradygaster/dotnet-codespace)
3129

3230

3331
### Run Locally
3432

35-
1. Clone the repo to your local machine `git clone https://github.com/bradygaster/dotnet-redis-pubsub`
33+
1. Clone the repo to your local machine `git clone https://github.com/bradygaster/dotnet-codespace`
3634
1. Open repo in VS Code
3735

38-
## Then...
39-
40-
1. Open the `docker-compose.yml` file
41-
1. Right-click anywhere in the file and select **Docker Compose - Up**
42-
1. Switch to the Docker extension to see the containers start up
43-
1. Right-click the `publisher` container and select the `Open in Browser` menu item
44-
1. You should see `Publisher is up` in your browser
45-
1. Add the URL slug `/swagger` to the end of the URL in your browser to open the Swagger UI test page
46-
1. Open the `POST` method, and replace the JSON body in the test window with this:
47-
48-
```json
49-
{
50-
"date": "2023-06-10T04:52:16.323Z",
51-
"temperatureC": 30,
52-
"summary": "Hot"
53-
}
54-
```
55-
1. Right-click the `subscriber` container in the Docker containers pane, and select `View logs`
56-
1. The logs should open up in your terminal window, and you should see evidence that the `subscriber` is receiving messages from the Redis subscription:
57-
58-
```
59-
info: Microsoft.Hosting.Lifetime[0]
60-
Application started. Press Ctrl+C to shut down.
61-
info: Microsoft.Hosting.Lifetime[0]
62-
Hosting environment: Production
63-
info: Microsoft.Hosting.Lifetime[0]
64-
Content root path: /app
65-
info: Program[0]
66-
Message received from test-channel : Hot (85) at 06/10/2023 04:52:16
67-
info: Program[0]
68-
Message received from test-channel : Hot (85) at 06/10/2023 04:52:16
69-
```
70-
71-
1. Send a few more messages using the Swagger UI tool whilst viewing the subscriber's logs in the editor
72-
73-
## Deploy to Azure
74-
75-
You can deploy the app to Azure using the Azure Developer CLI, from any of the environments above.
76-
77-
> NOTE: If you are running locally, then you first need to [install the Azure Developer CLI](https://aka.ms/azd/install)
78-
79-
### Deploy with Azure Developer CLI
80-
81-
1. Open a terminal
82-
1. Run `azd auth login`
83-
1. Run `azd up`
84-
8536
## Contributing
8637

8738
This project welcomes contributions and suggestions. Most contributions require you to agree to a

0 commit comments

Comments
 (0)