{"id":18768521,"url":"https://github.com/pdevito3/hello-dotnet-dashboard","last_synced_at":"2025-06-18T06:35:15.148Z","repository":{"id":205209540,"uuid":"713681114","full_name":"pdevito3/hello-dotnet-dashboard","owner":"pdevito3","description":"The dotnet api for my blog post on making custom dashboard middleware like swagger or hangfire","archived":false,"fork":false,"pushed_at":"2023-11-03T03:02:29.000Z","size":187,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T23:42:48.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pdevito3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-03T02:45:08.000Z","updated_at":"2024-11-04T16:39:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"66ed13a4-9bb0-4034-bbe5-d2321e605fde","html_url":"https://github.com/pdevito3/hello-dotnet-dashboard","commit_stats":null,"previous_names":["pdevito3/hello-dotnet-dashboard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevito3%2Fhello-dotnet-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevito3%2Fhello-dotnet-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevito3%2Fhello-dotnet-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevito3%2Fhello-dotnet-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdevito3","download_url":"https://codeload.github.com/pdevito3/hello-dotnet-dashboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248674677,"owners_count":21143760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T19:13:02.191Z","updated_at":"2025-04-13T06:32:41.844Z","avatar_url":"https://github.com/pdevito3.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hellodash\n\nThis project was created with [Craftsman](https://github.com/pdevito3/craftsman).\n\n## Getting Started\n1. Run `docker-compose up` from your `.sln` directory to spin up your database. Migrations will be ran automatically when staritng the db.\n\n### Running Your Project(s)\nOnce you have your database(s) running, you can run your API(s), BFF, and Auth Servers by using \nthe `dotnet run` command or running your project(s) from your IDE of choice.   \n\n### Migrations\nMigrations should be applied for you automatically on startup, but if you have any any issues, you can do the following:\n    1. Make sure you have a migrations in your boundary project (there should be a `Migrations` directory in the project directory). \n    If there isn't see [Running Migrations](#running-migrations) below.\n    2. Confirm your environment (`ASPNETCORE_ENVIRONMENT`) is set to `Development` using \n    `$Env:ASPNETCORE_ENVIRONMENT = \"Development\"` for powershell or `export ASPNETCORE_ENVIRONMENT=Development` for bash.\n    3. `cd` to the boundary project root (e.g. `cd RecipeManagement/src/RecipeManagement`)\n    4. Run your project and your migrations should be applied automatically. Alternatively, you can run `dotnet ef database update` to apply your migrations manually.\n\n    \u003e You can also stay in the `sln` root and run something like `dotnet ef database update --project RecipeManagement/src/RecipeManagement`\n\n## Running Integration Tests\nTo run integration tests:\n\n1. Ensure that you have docker installed.\n2. Go to your src directory for the bounded context that you want to test.\n3. Confirm that you have migrations in your infrastructure project. If you need to add them, see the [instructions below](#running-migrations).\n4. Run the tests\n\n\u003e ⏳ If you don't have the database image pulled down to your machine, they will take some time on the first run.\n\n### Troubleshooting\n- If your entity has foreign keys, you might need to adjust some of your tests after scaffolding to accomodate them.\n\n## Running Migrations\nTo create a new migration, make sure your environment is set to `Development`:\n\n### Powershell\n```powershell\n$Env:ASPNETCORE_ENVIRONMENT = \"Development\"\n```\n\n### Bash\n```bash\nexport ASPNETCORE_ENVIRONMENT=Development\n```\n\nThen run the following:\n\n```shell\ncd YourBoundedContextName/src/YourBoundedContextName\ndotnet ef migrations add \"MigrationDescription\"\n```\n\nTo apply your migrations to your local db, make sure your database is running in docker run the following:\n\n```bash\ncd YourBoundedContextName/src/YourBoundedContextName\ndotnet ef database update\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdevito3%2Fhello-dotnet-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdevito3%2Fhello-dotnet-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdevito3%2Fhello-dotnet-dashboard/lists"}