Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaronpowell/dab-library-blazor-sample
https://github.com/aaronpowell/dab-library-blazor-sample
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/aaronpowell/dab-library-blazor-sample
- Owner: aaronpowell
- License: mit
- Created: 2023-04-04T00:19:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-12T07:21:48.000Z (over 1 year ago)
- Last Synced: 2024-11-17T19:55:42.478Z (about 2 months ago)
- Language: HTML
- Size: 209 KB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blazor Library demo
This is a sample Blazor WASM application that uses the [Data API builder for Azure Databases (DAB)](https://aka.ms/dab) for the backend (over an Azure SQL instance).
## Running the demo
To run this sample you'll need to first provision an Azure SQL or MSSQL server instance and execute the database setup scripts (see [./Database/readme.md](./Database/readme.md) for details).
Once the database is ready you'll need to install the .NET tools:
```bash
dotnet tool restore
```Next, you'll need to configure an environment variable, named **MSSQL**, with the connection string to the database and then launch the DAB CLI:
```bash
dotnet dab start
```Lastly, open the solution in Visual Studio and run the application.
## Notes
In this sample DAB has been configured without any authentication or authorisation on the database entities, so the application is not secure. This is only for demo purposes, in a real application you should always secure your database entities (see [the docs](https://github.com/Azure/data-api-builder/blob/main/docs/authorization.md)).