{"id":21623044,"url":"https://github.com/pandatecham/be-lib-startup-environment-check","last_synced_at":"2026-05-13T12:44:31.405Z","repository":{"id":190265618,"uuid":"682278036","full_name":"PandaTechAM/be-lib-startup-environment-check","owner":"PandaTechAM","description":"Designed to validate essential environment variables during application startup. By checking required configurations, it prevents unexpected behaviors and ensures smooth initialization. Easily integrate this check into your .NET applications to enhance robustness and maintainability.","archived":false,"fork":false,"pushed_at":"2023-11-29T08:44:45.000Z","size":155,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T07:09:21.399Z","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/PandaTechAM.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-23T20:35:47.000Z","updated_at":"2023-08-23T20:36:59.000Z","dependencies_parsed_at":"2023-11-29T09:31:11.385Z","dependency_job_id":"7fc27a66-59a3-40a0-9b9c-0f833672d934","html_url":"https://github.com/PandaTechAM/be-lib-startup-environment-check","commit_stats":null,"previous_names":["pandatecham/be-lib-startup-environment-check"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PandaTechAM/be-lib-startup-environment-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaTechAM%2Fbe-lib-startup-environment-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaTechAM%2Fbe-lib-startup-environment-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaTechAM%2Fbe-lib-startup-environment-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaTechAM%2Fbe-lib-startup-environment-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PandaTechAM","download_url":"https://codeload.github.com/PandaTechAM/be-lib-startup-environment-check/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaTechAM%2Fbe-lib-startup-environment-check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279778859,"owners_count":26225478,"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","status":"online","status_checked_at":"2025-10-19T02:00:07.647Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-25T00:11:26.688Z","updated_at":"2025-10-19T10:21:48.586Z","avatar_url":"https://github.com/PandaTechAM.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Pandatech.StartupEnvironmentCheck\n\n`Pandatech.StartupEnvironmentCheck` is a lightweight library designed to validate required environment variables at\napplication startup. It helps ensure that essential configurations are in place, preventing unexpected behaviors or\nfailures due to missing environment variables.\n\n## Installation\n\nYou can install `Pandatech.StartupEnvironmentCheck` via NuGet Package Manager or by using the following command in your\nPackage Manager Console:\n\n```powershell\nInstall-Package Pandatech.StartupEnvironmentCheck\n```\n\n## Usage\n\n### Validating Environment Variables\n\nYou can use the `EnvironmentVariableValidator.ValidateEnvironmentVariables` method to validate required environment\nvariables. Here's an example:\n\n```csharp\nusing StartupEnvironmentCheck;\n\npublic class Program\n{\n    public static void Main(string[] args)\n    {\n        var requiredEnvVars = new List\u003cstring\u003e { \"DB_CONNECTION_STRING\", \"API_KEY\" };\n        EnvironmentVariableValidator.ValidateEnvironmentVariables(requiredEnvVars);\n        \n        // Continue with the rest of the application startup\n    }\n}\n```\n\n### Handling Missing Variables\n\nIf any required environment variables are missing, a `MissingEnvironmentVariablesException` will be thrown. This\nexception includes a detailed message listing the missing variables.\n\nYou can catch this exception to log the error or take other appropriate actions:\n\n```csharp\ntry\n{\nEnvironmentVariableValidator.ValidateEnvironmentVariables(requiredEnvVars);\n}\ncatch (MissingEnvironmentVariablesException ex)\n{\n// Log the error or take other actions\n}\n```\n\n## Contributing\n\nFor support, issues, or contributions, please refer to the project's GitHub repository or contact the maintainers.\n\n## License\n\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandatecham%2Fbe-lib-startup-environment-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpandatecham%2Fbe-lib-startup-environment-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandatecham%2Fbe-lib-startup-environment-check/lists"}