Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaronpowell/dab-blazor-trivia-demo
A demo application using Blazor and SWA Database Connections
https://github.com/aaronpowell/dab-blazor-trivia-demo
Last synced: about 1 month ago
JSON representation
A demo application using Blazor and SWA Database Connections
- Host: GitHub
- URL: https://github.com/aaronpowell/dab-blazor-trivia-demo
- Owner: aaronpowell
- License: mit
- Created: 2023-03-15T00:47:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T00:47:19.000Z (almost 2 years ago)
- Last Synced: 2024-11-17T19:55:16.115Z (about 2 months ago)
- Language: CSS
- Size: 280 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
## Azure Static Web App Database Connections sample
This is a sample application on how to use the [Azure Static Web App Database Connections](https://aka.ms/swa/db/docs) feature to expose Azure SQL with GraphQL.
The application is written in Blazor and [Strawberry Shake](https://chillicream.com/docs/strawberryshake/v13) to query the GraphQL API.
You can learn more about it in the [companion blog post](https://www.aaron-powell.com/posts/2023-03-16-graphql-on-azure-part-14-using-dab-with-swa-and-blazor).
## Running the application
This repo contains a [VSCode devcontainer](https://code.visualstudio.com/docs/remote/containers) configuration, so you can open the repo in VSCode and have it provision a local MSSQL emulator instance for you. There is a script that can be used to setup the SQL database and seed it with data, you just need to run `npm run setup` after `npm install`.
Once the database is provisioned you can run `npm start` then navigate to http://localhost:4280.