Build a Data layer in .NET using Cosmos DB. This is code for the Data Layer sessions at Code Camp.
- Git clone
- Copy
DataLayerTests/appsettings.example.json
=>DataLayerTests/appsettings.json
- Create a Cosmos DB account and Database, and a Container named "People"
- Paste Cosmos DB Connection string and Database Id into
appsettings.json
- Open in Visual Studio / VSCode and Build
- Run Tests
Or in a bash terminal:
git clone https://github.com/DanielLarsenNZ/CodeCamp-DataLayer.git
cd CodeCamp-DataLayer
cp DataLayerTests/appsettings.example.json DataLayerTests/appsettings.json
code .
# Paste Cosmos DB Connection string and Database Id into appsettings.json
dotnet build .
dotnet test .