Skip to content

Commit 4917a7b

Browse files
authored
Merge pull request #29 from markjbrown/main
update readme
2 parents 25646ff + 47aac1a commit 4917a7b

File tree

10 files changed

+62
-283
lines changed

10 files changed

+62
-283
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,29 @@ Dive into the `schema-versioning` folder to learn how to manage changes to your
6565

6666
## Getting Started
6767

68+
### Prerequisites
69+
If running locally you will need to install some pre-requistes.
70+
71+
- [.NET 8.0 Runtime](https://dotnet.microsoft.com/download)
72+
- [Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local#install-the-azure-functions-core-tools)
73+
74+
To confirm you have the required versions of the tools installed.
75+
76+
First, check the .NET runtime with this command. Make sure that .NET components with versions that start with 8.0 appear as part of the output:
77+
78+
```bash
79+
dotnet --list-runtimes
80+
```
81+
82+
Next, check the version of Azure Functions Core Tools with this command. You should have a version 4.*x* installed.:
83+
84+
```bash
85+
func --version
86+
```
87+
88+
If you do not have this version installed, you will need to uninstall the older version and follow [these instructions for installing Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local#install-the-azure-functions-core-tools).
89+
90+
6891
### Using the Terminal:
6992
- Open the terminal on your computer.
7093
- Navigate to the directory where you want to clone the repository.
@@ -83,7 +106,7 @@ Dive into the `schema-versioning` folder to learn how to manage changes to your
83106

84107
Nearly all of these samples are configured to run from [GitHub Codespaces](https://docs.github.com/codespaces/overview).
85108

86-
Navigate to the individual folders of each design pattern for a dedicated `README.md` file and look for the GitHub Codespaced badge.
109+
Navigate to the individual folders of each design pattern for a dedicated `README.md` file and look for the GitHub Codespaced badge.
87110

88111
### Setting up Azure Cosmos DB
89112

attribute-array/README.md

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -129,50 +129,16 @@ SELECT p.name, s.size, s.count FROM products p JOIN s IN p.sizes WHERE s.count >
129129

130130
If a user adds new sizes or even removes them. The same query will run unmodified, future-proofing your design and avoiding potential bugs.
131131

132-
## Try this implementation
133-
134-
In order to run the demos, you will need:
135-
136-
- [.NET 8.0 Runtime](https://dotnet.microsoft.com/download)
137-
- [Azure Functions Core Tools v4](https://learn.microsoft.com/azure/azure-functions/functions-run-local#install-the-azure-functions-core-tools)
138-
139-
## Confirm required tools are installed
140-
141-
Confirm you have the required versions of the tools installed for this demo.
142-
143-
First, check the .NET runtime with this command:
144-
145-
```bash
146-
dotnet --list-runtimes
147-
```
148-
149-
As you may have multiple versions of the runtime installed, make sure that .NET components with versions that start with 6.0 appear as part of the output.
150-
151132
## Getting the code
152133

153-
### **Clone the Repository to Your Local Computer:**
154-
155-
**Using the Terminal:**
156-
157-
- Open the terminal on your computer.
158-
- Navigate to the directory where you want to clone the repository.
159-
- Type `git clone https://github.com/Azure-Samples/cosmos-db-design-patterns.git` and press enter.
160-
- The repository will be cloned to your local machine.
161-
162-
**Using Visual Studio Code:**
134+
### Using Terminal or VS Code
163135

164-
- Open Visual Studio Code.
165-
- Click on the **Source Control** icon in the left sidebar.
166-
- Click on the **Clone Repository** button at the top of the Source Control panel.
167-
- Paste `https://github.com/Azure-Samples/cosmos-db-design-patterns.git` into the text field and press enter.
168-
- Select a directory where you want to clone the repository.
169-
- The repository will be cloned to your local machine.
136+
Directions installing pre-requisites to run locally and for cloning this repository using [Terminal or VS Code](../README.md?#getting-started)
170137

171-
### **GitHub Codespaces**
172138

173-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
139+
### GitHub Codespaces
174140

175-
- Open the application code in a GitHub Codespace:
141+
Open the application code in GitHub Codespaces:
176142

177143
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fattribute-array%2Fdevcontainer.json)
178144

data-binning/README.md

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -128,51 +128,18 @@ Once binning is applied to summarize to a 1 minute window, the resulting event w
128128

129129
Note: In the demo application, aggregated events are collected based on system time. The `numberOfReadings` will likely be less than 12 on the earliest `eventTimestamp` because that is usually a partial minute (from whenever the application is started until the first time current timestamp has seconds value of `00`).
130130

131-
## Try this implementation
132-
133-
In order to run the demos, you will need:
134-
135-
- [.NET 8.0 Runtime](https://dotnet.microsoft.com/download)
136-
137-
## Confirm required tools are installed
138-
139-
Confirm you have the required versions of the tools installed for this demo.
140-
141-
First, check the .NET runtime with this command:
142-
143-
```bash
144-
dotnet --list-runtimes
145-
```
146-
147-
As you may have multiple versions of the runtime installed, make sure that .NET components with versions that start with 6.0 appear as part of the output.
148-
149131
## Getting the code
150132

151-
### **Clone the Repository to Your Local Computer:**
152-
153-
**Using the Terminal:**
154-
155-
- Open the terminal on your computer.
156-
- Navigate to the directory where you want to clone the repository.
157-
- Type `git clone https://github.com/Azure-Samples/cosmos-db-design-patterns.git` and press enter.
158-
- The repository will be cloned to your local machine.
159-
160-
**Using Visual Studio Code:**
133+
### Using Terminal or VS Code
161134

162-
- Open Visual Studio Code.
163-
- Click on the **Source Control** icon in the left sidebar.
164-
- Click on the **Clone Repository** button at the top of the Source Control panel.
165-
- Paste `https://github.com/Azure-Samples/cosmos-db-design-patterns.git` into the text field and press enter.
166-
- Select a directory where you want to clone the repository.
167-
- The repository will be cloned to your local machine.
135+
Directions installing pre-requisites to run locally and for cloning this repository using [Terminal or VS Code](../README.md?#getting-started)
168136

169-
### **GitHub Codespaces**
170137

171-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
138+
### GitHub Codespaces
172139

173-
- Open the application code in a GitHub Codespace:
140+
Open the application code in GitHub Codespaces:
174141

175-
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdata-binning%2Fdevcontainer.json)
142+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdata-binning%2Fdevcontainer.json)
176143

177144
## Set up application configuration files
178145

distributed-counter/README.md

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -64,60 +64,18 @@ This sample is implemented as a C#/.NET application with three projects. The thr
6464
...
6565
```
6666

67-
## Try this implementation
68-
69-
In order to run the demos, you will need:
70-
71-
- [.NET 8.0 Runtime](https://dotnet.microsoft.com/download)
72-
- [Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local#install-the-azure-functions-core-tools)
73-
74-
## Confirm required tools are installed
75-
76-
Confirm you have the required versions of the tools installed for this demo.
77-
78-
First, check the .NET runtime with this command:
79-
80-
```bash
81-
dotnet --list-runtimes
82-
```
83-
84-
As you may have multiple versions of the runtime installed, make sure that .NET components with versions that start with 8.0 appear as part of the output.
85-
86-
Next, check the version of Azure Functions Core Tools with this command:
87-
88-
```bash
89-
func --version
90-
```
91-
92-
You should have a version 4._x_ installed. If you do not have this version installed, you will need to uninstall the older version and follow [these instructions for installing Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local#install-the-azure-functions-core-tools).
93-
9467
## Getting the code
9568

96-
### **Clone the Repository to Your Local Computer:**
97-
98-
**Using the Terminal:**
99-
100-
- Open the terminal on your computer.
101-
- Navigate to the directory where you want to clone the repository.
102-
- Type `git clone https://github.com/Azure-Samples/cosmos-db-design-patterns.git` and press enter.
103-
- The repository will be cloned to your local machine.
104-
105-
**Using Visual Studio Code:**
69+
### Using Terminal or VS Code
10670

107-
- Open Visual Studio Code.
108-
- Click on the **Source Control** icon in the left sidebar.
109-
- Click on the **Clone Repository** button at the top of the Source Control panel.
110-
- Paste `https://github.com/Azure-Samples/cosmos-db-design-patterns.git` into the text field and press enter.
111-
- Select a directory where you want to clone the repository.
112-
- The repository will be cloned to your local machine.
71+
Directions installing pre-requisites to run locally and for cloning this repository using [Terminal or VS Code](../README.md?#getting-started)
11372

114-
### **GitHub Codespaces**
11573

116-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
74+
### GitHub Codespaces
11775

118-
- Open the application code in a GitHub Codespace:
76+
Open the application code in GitHub Codespaces:
11977

120-
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdistributed-counter%2Fdevcontainer.json)
78+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdistributed-counter%2Fdevcontainer.json)
12179

12280
## Set up application configuration files
12381

distributed-lock/README.md

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -42,49 +42,16 @@ The application creates a Lock based on the Name and Time to Live( TTL) provided
4242

4343
The TTL feature is used to automatically get rid of a lease object rather than having clients do the work of checking a leasedUntil date. This takes away one step, but you are still required to check to see if two clients tried to get a lease on the same object at the same time. This is easily done in Azure Cosmos DB via the 'etag' property on the object.
4444

45-
## Try this implementation
46-
47-
In order to run the demos, you will need:
48-
49-
- [.NET 8.0 Runtime](https://dotnet.microsoft.com/download)
50-
51-
## Confirm required tools are installed
52-
53-
Confirm you have the required versions of the tools installed for this demo.
54-
55-
First, check the .NET runtime with this command:
56-
57-
```bash
58-
dotnet --list-runtimes
59-
```
60-
61-
As you may have multiple versions of the runtime installed, make sure that .NET components with versions that start with 6.0 appear as part of the output.
62-
6345
## Getting the code
6446

65-
### **Clone the Repository to Your Local Computer:**
66-
67-
**Using the Terminal:**
68-
69-
- Open the terminal on your computer.
70-
- Navigate to the directory where you want to clone the repository.
71-
- Type `git clone https://github.com/Azure-Samples/cosmos-db-design-patterns.git` and press enter.
72-
- The repository will be cloned to your local machine.
73-
74-
**Using Visual Studio Code:**
47+
### Using Terminal or VS Code
7548

76-
- Open Visual Studio Code.
77-
- Click on the **Source Control** icon in the left sidebar.
78-
- Click on the **Clone Repository** button at the top of the Source Control panel.
79-
- Paste `https://github.com/Azure-Samples/cosmos-db-design-patterns.git` into the text field and press enter.
80-
- Select a directory where you want to clone the repository.
81-
- The repository will be cloned to your local machine.
49+
Directions installing pre-requisites to run locally and for cloning this repository using [Terminal or VS Code](../README.md?#getting-started)
8250

83-
### **GitHub Codespaces**
8451

85-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
52+
### GitHub Codespaces
8653

87-
- Open the application code in a GitHub Codespace:
54+
Open the application code in GitHub Codespaces:
8855

8956
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdistributed-lock%2Fdevcontainer.json)
9057

document-versioning/README.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -94,29 +94,14 @@ You should have installed a version that starts with `4.`. If you do not have a
9494

9595
## Getting the code
9696

97-
### **Clone the Repository to Your Local Computer:**
97+
### Using Terminal or VS Code
9898

99-
**Using the Terminal:**
99+
Directions installing pre-requisites to run locally and for cloning this repository using [Terminal or VS Code](../README.md?#getting-started)
100100

101-
- Open the terminal on your computer.
102-
- Navigate to the directory where you want to clone the repository.
103-
- Type `git clone https://github.com/Azure-Samples/cosmos-db-design-patterns.git` and press enter.
104-
- The repository will be cloned to your local machine.
105101

106-
**Using Visual Studio Code:**
102+
### GitHub Codespaces
107103

108-
- Open Visual Studio Code.
109-
- Click on the **Source Control** icon in the left sidebar.
110-
- Click on the **Clone Repository** button at the top of the Source Control panel.
111-
- Paste `https://github.com/Azure-Samples/cosmos-db-design-patterns.git` into the text field and press enter.
112-
- Select a directory where you want to clone the repository.
113-
- The repository will be cloned to your local machine.
114-
115-
### **GitHub Codespaces**
116-
117-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
118-
119-
- Open the application code in a GitHub Codespace:
104+
Open the application code in GitHub Codespaces:
120105

121106
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdocument-versioning%2Fdevcontainer.json)
122107

event-sourcing/README.md

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -120,58 +120,16 @@ Sample events in the event store could look like this:
120120
}
121121
```
122122

123-
## Try this implementation
124-
125-
To run the function app for Event Sourcing Pattern, you will need to have:
126-
127-
- [.NET 8.0 Runtime](https://dotnet.microsoft.com/download)
128-
- [Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local#install-the-azure-functions-core-tools)
129-
130-
## Confirm required tools are installed
131-
132-
Confirm you have the required versions of the tools installed for this demo.
133-
134-
First, check the .NET runtime with this command:
135-
136-
```bash
137-
dotnet --list-runtimes
138-
```
139-
140-
As you may have multiple versions of the runtime installed, make sure that .NET components with versions that start with 8.0 appear as part of the output.
141-
142-
Next, check the version of Azure Functions Core Tools with this command:
143-
144-
```bash
145-
func --version
146-
```
147-
148-
You should have a version 4.*x* installed. If you do not have this version installed, you will need to uninstall the older version and follow [these instructions for installing Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local#install-the-azure-functions-core-tools).
149-
150123
## Getting the code
151124

152-
### **Clone the Repository to Your Local Computer:**
153-
154-
**Using the Terminal:**
155-
156-
- Open the terminal on your computer.
157-
- Navigate to the directory where you want to clone the repository.
158-
- Type `git clone https://github.com/Azure-Samples/cosmos-db-design-patterns.git` and press enter.
159-
- The repository will be cloned to your local machine.
160-
161-
**Using Visual Studio Code:**
125+
### Using Terminal or VS Code
162126

163-
- Open Visual Studio Code.
164-
- Click on the **Source Control** icon in the left sidebar.
165-
- Click on the **Clone Repository** button at the top of the Source Control panel.
166-
- Paste `https://github.com/Azure-Samples/cosmos-db-design-patterns.git` into the text field and press enter.
167-
- Select a directory where you want to clone the repository.
168-
- The repository will be cloned to your local machine.
127+
Directions installing pre-requisites to run locally and for cloning this repository using [Terminal or VS Code](../README.md?#getting-started)
169128

170-
### **GitHub Codespaces**
171129

172-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
130+
### GitHub Codespaces
173131

174-
- Open the application code in a GitHub Codespace:
132+
Open the application code in GitHub Codespaces:
175133

176134
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fevent-sourcing%2Fdevcontainer.json)
177135

0 commit comments

Comments
 (0)