FrostAura Events platform allows for setting up of venues and taking reservations.
1.1K
Events Blazor client.
| Project | Build | Test Coverage |
|---|---|---|
| FrostAura.Clients.Events | PENDING |
For migrations, we need to add them initially and update or re-add them each time the context changes. The actual execution of migrations happen on application start and is autonomous.
dotnet tool install --global dotnet-ef
dotnet ef migrations add InitialDbMigration -c EventsDbContext -o Migrations/EventsDb --project FrostAura.Clients.Events.Data
The project supports being run as a container and is in fact indended to. In order to run this service locally, simply run docker-compose up in the directory where the docker-compose.yml file resides. The service will now run on port 8083:HTTPS, 8082:HTTP.
Automated builds are set up for Docker Hub. To use this service without the source code running, use
docker pull frostauraconsolidated/events orAfter the service is running, you can connect another application to it via openid or simply confirm that the service is running correctly by navigating to https://localhost:8083/
NOTE: For the container to work (HTTPS) by itself, we will require a valid SSL cert. You can simply create a dev self-signed cert using dotnet CLI, after which we can map it to the container. See below for local / development. For production you should have a valid cert. See https://docs.microsoft.com/en-us/aspnet/core/security/docker-compose-https?view=aspnetcore-3.1 for more.
Add a docker file share location for '%USERPROFILE%\.aspnet\https\'
dotnet dev-certs https --clean
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p Password1234
dotnet dev-certs https --trust
version: "3"
services:
db:
image: "mcr.microsoft.com/mssql/server"
environment:
- SA_PASSWORD=Password1234
- ACCEPT_EULA=Y
ports:
- 1433:1433
web:
image: "frostauraconsolidated/events"
ports:
- 8082:80
- 8083:443
depends_on:
- db
environment:
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_Kestrel__Certificates__Default__Password=Password1234
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
volumes:
- ~/.aspnet/https:/https:ro
To get context on how to consume the service, see the unit tests and integration tests for context on total usage.
In order to contribute, simply fork the repository, make changes and create a pull request.
For any queries, contact [email protected].
Content type
Image
Digest
Size
91.5 MB
Last updated
over 5 years ago
docker pull frostauraconsolidated/events