https://github.com/draud-egomann/blazorwebtemplate
Template Blazor Web App with Docker Compose configuration & splitting the db and the application.
https://github.com/draud-egomann/blazorwebtemplate
asp-net-core blazor blazor-server web-app-template
Last synced: 9 months ago
JSON representation
Template Blazor Web App with Docker Compose configuration & splitting the db and the application.
- Host: GitHub
- URL: https://github.com/draud-egomann/blazorwebtemplate
- Owner: Draud-Egomann
- License: mit
- Created: 2024-06-10T08:59:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-11T09:50:36.000Z (about 2 years ago)
- Last Synced: 2025-01-26T13:17:38.603Z (over 1 year ago)
- Topics: asp-net-core, blazor, blazor-server, web-app-template
- Language: HTML
- Homepage:
- Size: 155 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blazor Web App Template
This is a template for a Blazor Web App with a Docker Compose configuration also splitting the database and the application.
## Prerequisites
- [.NET 8 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
- [Docker Engine](https://docs.docker.com/engine/install/)
- [Docker Desktop (optional)](https://www.docker.com/products/docker-desktop/)
## Project Configurations
### Web
The `Web` project contains the Blazor Web App and is configured to use the `Data` project as the database context.
### docker-compose
The `docker-compose` project contains two start profiles, `docker-compose` and 'DB only'. The `docker-compose` profile will start the application and the database, while the 'DB only' profile will only start the database.
## Create Migrations
To create a migration the Data Directory must be the current Project Directory, then a migration can be created normally with
```bash
Add-Migration [Name]
```
## Project Structure
| Directory | Description |
| --- | --- |
| Data | Contains the models, interfaces and database context for the application. |
| docker-compose | Contains the configuration for the Docker containers. |
| Web | Contains the UI / Frontend of the application. |
| Tests | Contains the unit and integration tests for the application. |
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.