{"id":32150518,"url":"https://github.com/perfectaccelerators/applicationconfiguration","last_synced_at":"2026-02-19T08:01:47.744Z","repository":{"id":63920151,"uuid":"129967325","full_name":"PerfectAccelerators/ApplicationConfiguration","owner":"PerfectAccelerators","description":"A simple and codable way to configure a Perfect Application (WIP)","archived":false,"fork":false,"pushed_at":"2018-07-17T14:52:26.000Z","size":224,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-04T09:22:09.621Z","etag":null,"topics":["configuration","perfect","perfect-server","server-side-swift","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PerfectAccelerators.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-17T21:29:38.000Z","updated_at":"2018-07-17T14:51:20.000Z","dependencies_parsed_at":"2023-01-14T14:00:32.375Z","dependency_job_id":null,"html_url":"https://github.com/PerfectAccelerators/ApplicationConfiguration","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/PerfectAccelerators/ApplicationConfiguration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectAccelerators%2FApplicationConfiguration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectAccelerators%2FApplicationConfiguration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectAccelerators%2FApplicationConfiguration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectAccelerators%2FApplicationConfiguration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerfectAccelerators","download_url":"https://codeload.github.com/PerfectAccelerators/ApplicationConfiguration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectAccelerators%2FApplicationConfiguration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29608152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["configuration","perfect","perfect-server","server-side-swift","swift"],"created_at":"2025-10-21T10:03:06.994Z","updated_at":"2026-02-19T08:01:47.739Z","avatar_url":"https://github.com/PerfectAccelerators.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ApplicationConfiguration\nA simple and codable way to configure a Perfect Application.\n\n**This module is a part of PerfectAcelerators brought to you by the Perfect Community!**\n\n## Installation\nUsing Swift Package Manager, add the following to your packages.swift\n\n`.package(url: \"https://github.com/PerfectAccelerators/ApplicationConfiguration.git\", .branch(\"master\"))`\n\nRun `swift package update` and if you use Xcode run `swift package generate-xcodeproj`\n\n## Usage\nCreate a file that includes the configuration for your application, for instance:\n\n\t{\n\t    \"server\": {\n\t        \"baseURL\": \"localhost:8181\",\n\t        \"baseDomain\": \"localhost\",\n\t        \"port\": 8181,\n\t        \"secure\": 0\n\t    },\n\t    \"os\": 2,\n\t    \"environment\": 1,\n\t    \"ssl\": {\n\t        \"port\": 443,\n\t        \"originCertificatePath\": \"\",\n\t        \"privateKeyPath\": \"\",\n\t        \"verifyMode\": \"peer\"\n\t    },\n\t    \"logging\": {\n\t        \"requestLoggingPath\": \"./perfectRequests.log\",\n\t        \"logPath\": \"./perfect.log\"\n\t    },\n\t    \"db\": {\n\t        \"name\": \"perfect\",\n\t        \"host\": \"localhost\",\n\t        \"port\": 3306,\n\t        \"user\": \"\",\n\t        \"pass\": \"\",\n\t        \"driverType\": 1\n\t    }\n\t}\n\nThen modify your main.swift:\n\n\timport ApplicationConfiguration\n\t\n\t#if os(Linux)\n\tlet fileRoot = \"/perfect-deployed/Perfect/\"\n\tlet filePath = \"./config/ApplicationConfigurationLinux.json\"\n\t#endif\n\t\n\tlet app = Application(name: \"Perfect\", path: filePath)\n\t\n\tdo {\n\t    try HTTPServer.launch(app.server())\n\t} catch {\n\t    fatalError(\"\\(error)\")\n\t}\n\n## Documentation\n[Jazzy][1] generated documentation can be found [here][2]\n\n## Contributing\nTo contribute a feature or idea to **ApplicationConfiguration**, fork the project, make your changes and submit a pull request :)\n\n[1]:\thttps://github.com/realm/jazzy\n[2]:\thttps://perfectaccelerators.github.io/ApplicationConfiguration/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperfectaccelerators%2Fapplicationconfiguration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperfectaccelerators%2Fapplicationconfiguration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperfectaccelerators%2Fapplicationconfiguration/lists"}