Skip to content

seesharprun/blazor-wasm-codespaces-demo

Repository files navigation

Example ASP.NET Blazor WebAssembly + Azure Cosmos DB for NoSQL + Azure Static Web Apps

Test locally

  1. This demo application requires Azure Cosmos DB for NoSQL to have a cosmicworks database, products container, and people container already existing. (It's a requirement for the Azure Functions to start). You can implement this in the emulator or a live service.

  2. Update the src/Api/local.settings.json file with your Azure Cosmos DB connection string:

    "COSMOSDB__CONNECTIONSTRING": "AccountEndpoint=https://localhost:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="

    Tip: The default is the emulator.

  3. Run the Azure Static Web Apps CLI:

    swa start

    Tip: If you don't have it installed, npm install -g @azure/static-web-apps-cli.

Deploy to Azure

Deploy to Azure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published