You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
+
68
91
### Using the Terminal:
69
92
- Open the terminal on your computer.
70
93
- 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
83
106
84
107
Nearly all of these samples are configured to run from [GitHub Codespaces](https://docs.github.com/codespaces/overview).
85
108
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.
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
-
151
132
## Getting the code
152
133
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
163
135
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)
170
137
171
-
### **GitHub Codespaces**
172
138
173
-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
139
+
### GitHub Codespaces
174
140
175
-
-Open the application code in a GitHub Codespace:
141
+
Open the application code in GitHub Codespaces:
176
142
177
143
[](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fattribute-array%2Fdevcontainer.json)
Copy file name to clipboardExpand all lines: data-binning/README.md
+5-38Lines changed: 5 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,51 +128,18 @@ Once binning is applied to summarize to a 1 minute window, the resulting event w
128
128
129
129
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`).
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
-
149
131
## Getting the code
150
132
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
161
134
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)
168
136
169
-
### **GitHub Codespaces**
170
137
171
-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
138
+
### GitHub Codespaces
172
139
173
-
-Open the application code in a GitHub Codespace:
140
+
Open the application code in GitHub Codespaces:
174
141
175
-
[](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdata-binning%2Fdevcontainer.json)
142
+
[](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdata-binning%2Fdevcontainer.json)
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
-
94
67
## Getting the code
95
68
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
106
70
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)
113
72
114
-
### **GitHub Codespaces**
115
73
116
-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
74
+
### GitHub Codespaces
117
75
118
-
-Open the application code in a GitHub Codespace:
76
+
Open the application code in GitHub Codespaces:
119
77
120
-
[](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdistributed-counter%2Fdevcontainer.json)
78
+
[](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdistributed-counter%2Fdevcontainer.json)
Copy file name to clipboardExpand all lines: distributed-lock/README.md
+4-37Lines changed: 4 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,49 +42,16 @@ The application creates a Lock based on the Name and Time to Live( TTL) provided
42
42
43
43
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.
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
-
63
45
## Getting the code
64
46
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
75
48
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)
82
50
83
-
### **GitHub Codespaces**
84
51
85
-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
52
+
### GitHub Codespaces
86
53
87
-
-Open the application code in a GitHub Codespace:
54
+
Open the application code in GitHub Codespaces:
88
55
89
56
[](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdistributed-lock%2Fdevcontainer.json)
Copy file name to clipboardExpand all lines: document-versioning/README.md
+4-19Lines changed: 4 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,29 +94,14 @@ You should have installed a version that starts with `4.`. If you do not have a
94
94
95
95
## Getting the code
96
96
97
-
### **Clone the Repository to Your Local Computer:**
97
+
### Using Terminal or VS Code
98
98
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)
100
100
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.
105
101
106
-
**Using Visual Studio Code:**
102
+
### GitHub Codespaces
107
103
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:
120
105
121
106
[](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fdocument-versioning%2Fdevcontainer.json)
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
-
150
123
## Getting the code
151
124
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
162
126
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)
169
128
170
-
### **GitHub Codespaces**
171
129
172
-
You can try out this implementation by running the code in [GitHub Codespaces](https://docs.github.com/codespaces/overview)
130
+
### GitHub Codespaces
173
131
174
-
-Open the application code in a GitHub Codespace:
132
+
Open the application code in GitHub Codespaces:
175
133
176
134
[](https://codespaces.new/azure-samples/cosmos-db-design-patterns?quickstart=1&devcontainer_path=.devcontainer%2Fevent-sourcing%2Fdevcontainer.json)
0 commit comments