Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaronpowell/dotnetconf2020
https://github.com/aaronpowell/dotnetconf2020
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/aaronpowell/dotnetconf2020
- Owner: aaronpowell
- Created: 2020-11-12T00:10:06.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-10T04:43:13.000Z (about 4 years ago)
- Last Synced: 2024-11-17T19:53:23.920Z (about 2 months ago)
- Language: HTML
- Size: 219 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blazor Starter Application
This template contains an example [Blazor WebAssembly](https://docs.microsoft.com/aspnet/core/blazor/?view=aspnetcore-3.1&WT.mc_id=javascript-0000-aapowell#blazor-webassembly) client application, a C# [Azure Functions](https://docs.microsoft.com/azure/azure-functions/functions-overview?WT.mc_id=javascript-0000-aapowell) and a C# class library with shared code.
## Getting Started
Create a repository from the [GitHub template](https://docs.github.com/en/enterprise/2.22/user/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template) and then clone it locally to your machine.
Once you clone the project, open the solution in [Visual Studio](https://visualstudio.microsoft.com/vs/community/?WT.mc_id=javascript-0000-aapowell) and follow these steps:
- Rename `local.settings.example.json` to `local.settings.json`
- Press **F5** to launch both the client application and the Functions API app_Note: If you're using the Azure Functions CLI tools, refer to [the documentation](https://docs.microsoft.com/azure/azure-functions/functions-run-local?tabs=windows,csharp,bash&WT.mc_id=javascript-0000-aapowell) on how to enable CORS._
## Template Structure
* **Client**: The Blazor WebAssembly sample application
* **API**: A C# Azure Functions API, which the Blazor application will call
* **Shared**: A C# class library with a shared data model between the Blazor and Functions application## Deploy to Azure Static Web Apps
This application can be deployed to [Azure Static Web Apps](https://docs.microsoft.com/azure/static-web-apps?WT.mc_id=javascript-0000-aapowell), to learn how, check out [our quickstart guide](https://aka.ms/blazor-swa/quickstart).