### Add Entity Framework Core Migrations for .NET Starter Kit Source: https://github.com/fullstackhero/dotnet-starter-kit/blob/main/README.md Instructions to add new Entity Framework Core migrations for different database contexts (Identity, Tenant, Todo, Catalog) using the .NET EF CLI. These commands should be run from the `./api/server` directory. ```bash dotnet ef migrations add "Add Identity Schema" --project .././migrations/postgresql/ --context IdentityDbContext -o Identity dotnet ef migrations add "Add Tenant Schema" --project .././migrations/postgresql/ --context TenantDbContext -o Tenant dotnet ef migrations add "Add Todo Schema" --project .././migrations/postgresql/ --context TodoDbContext -o Todo dotnet ef migrations add "Add Catalog Schema" --project .././migrations/postgresql/ --context CatalogDbContext -o Catalog ``` -------------------------------- ### Deploying FullStackHero .NET Starter Kit to AWS with Terraform Source: https://github.com/fullstackhero/dotnet-starter-kit/blob/main/terraform/README.md This snippet provides the Terraform commands to deploy the FullStackHero .NET Starter Kit application and its associated infrastructure to AWS. This includes provisioning an ECS Cluster and Task for the .NET Web API, an RDS PostgreSQL Database Instance, and necessary networking components like VPC and ALB. ```terraform terraform init terraform plan terraform apply --auto-approve ``` -------------------------------- ### API Endpoint: Generate Token Source: https://github.com/fullstackhero/dotnet-starter-kit/blob/main/README.md Documents the `/token` API endpoint used for generating authentication tokens. This endpoint accepts POST requests. ```APIDOC Endpoint: /token Method: POST Description: Generates Token. ``` -------------------------------- ### Bootstrapping AWS Backend Resources with Terraform Source: https://github.com/fullstackhero/dotnet-starter-kit/blob/main/terraform/README.md This snippet outlines the commands to provision essential backend resources on AWS required by Terraform for subsequent deployments. These resources typically include an Amazon S3 Bucket for state management and a DynamoDB Table for state locking. ```terraform terraform init terraform plan terraform apply --auto-approve ``` -------------------------------- ### Destroying AWS Resources with Terraform Source: https://github.com/fullstackhero/dotnet-starter-kit/blob/main/terraform/README.md This snippet shows the command to de-provision all resources deployed by Terraform. It's crucial for cost management and cleanup after testing or development, ensuring that no unnecessary AWS resources remain active. ```terraform terraform destroy --auto-approve ``` -------------------------------- ### CSS Animation and Styling for Blazor Components Source: https://github.com/fullstackhero/dotnet-starter-kit/blob/main/src/apps/blazor/client/wwwroot/index.html Defines a CSS keyframe animation named 'slide' for horizontal translation and applies styling to elements with classes 'fsh-wasm' and 'fsh-wasm-cont'. These styles are likely used for background effects or container positioning within a Blazor application, providing visual flair. ```css @keyframes slide { 0% { transform: translateX(-25%); } 100% { transform: translateX(25%); } } .fsh-wasm { animation: slide 3s ease-in-out infinite alternate; bottom: 0; left: -50%; opacity: .5; position: fixed; right: -50%; top: 0; z-index: -1 } .fsh-wasm-cont { left: 50%; padding: 10vmin; position: fixed; text-align: center; top: 50%; transform: translate(-50%, -50%) } ``` -------------------------------- ### Registering a Service Worker in JavaScript Source: https://github.com/fullstackhero/dotnet-starter-kit/blob/main/src/apps/blazor/client/wwwroot/index.html Registers a service worker script named 'service-worker.js' with the browser. This is a common practice in modern web applications to enable offline capabilities, improve performance through caching, and facilitate background synchronization, enhancing user experience. ```javascript navigator.serviceWorker.register('service-worker.js'); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.