{"id":20038058,"url":"https://github.com/perfectlysoft/perfect-local-auth-postgresql-template","last_synced_at":"2025-06-28T06:35:36.561Z","repository":{"id":69670076,"uuid":"93778973","full_name":"PerfectlySoft/Perfect-Local-Auth-PostgreSQL-Template","owner":"PerfectlySoft","description":"Template starter template for a Local Authentication - equipped server","archived":false,"fork":false,"pushed_at":"2019-05-08T18:15:24.000Z","size":1521,"stargazers_count":8,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T18:51:23.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PerfectlySoft.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-08T18:18:01.000Z","updated_at":"2021-03-07T12:41:29.000Z","dependencies_parsed_at":"2023-09-16T11:46:38.968Z","dependency_job_id":null,"html_url":"https://github.com/PerfectlySoft/Perfect-Local-Auth-PostgreSQL-Template","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectlySoft%2FPerfect-Local-Auth-PostgreSQL-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectlySoft%2FPerfect-Local-Auth-PostgreSQL-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectlySoft%2FPerfect-Local-Auth-PostgreSQL-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectlySoft%2FPerfect-Local-Auth-PostgreSQL-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerfectlySoft","download_url":"https://codeload.github.com/PerfectlySoft/Perfect-Local-Auth-PostgreSQL-Template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252451633,"owners_count":21749961,"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-13T10:25:10.366Z","updated_at":"2025-05-05T06:32:04.715Z","avatar_url":"https://github.com/PerfectlySoft.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Perfect Local Authentication App Template (PostgreSQL) [简体中文](README.zh_CN.md)\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"http://perfect.org/get-involved.html\" target=\"_blank\"\u003e\n        \u003cimg src=\"http://perfect.org/assets/github/perfect_github_2_0_0.jpg\" alt=\"Get Involed with Perfect!\" width=\"854\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/PerfectlySoft/Perfect\" target=\"_blank\"\u003e\n        \u003cimg src=\"http://www.perfect.org/github/Perfect_GH_button_1_Star.jpg\" alt=\"Star Perfect On Github\" /\u003e\n    \u003c/a\u003e  \n    \u003ca href=\"http://stackoverflow.com/questions/tagged/perfect\" target=\"_blank\"\u003e\n        \u003cimg src=\"http://www.perfect.org/github/perfect_gh_button_2_SO.jpg\" alt=\"Stack Overflow\" /\u003e\n    \u003c/a\u003e  \n    \u003ca href=\"https://twitter.com/perfectlysoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"http://www.perfect.org/github/Perfect_GH_button_3_twit.jpg\" alt=\"Follow Perfect on Twitter\" /\u003e\n    \u003c/a\u003e  \n    \u003ca href=\"http://perfect.ly\" target=\"_blank\"\u003e\n        \u003cimg src=\"http://www.perfect.org/github/Perfect_GH_button_4_slack.jpg\" alt=\"Join the Perfect Slack\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://developer.apple.com/swift/\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Swift-3.1-orange.svg?style=flat\" alt=\"Swift 3.1\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://developer.apple.com/swift/\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Platforms-OS%20X%20%7C%20Linux%20-lightgray.svg?style=flat\" alt=\"Platforms OS X | Linux\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://perfect.org/licensing.html\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/License-Apache-lightgrey.svg?style=flat\" alt=\"License Apache\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://twitter.com/PerfectlySoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Twitter-@PerfectlySoft-blue.svg?style=flat\" alt=\"PerfectlySoft Twitter\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://perfect.ly\" target=\"_blank\"\u003e\n        \u003cimg src=\"http://perfect.ly/badge.svg\" alt=\"Slack Status\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Perfect App Template Starter Project\n\nThis repository holds a template which can be cloned to serve as a starter for new work. It builds with Swift Package Manager and produces a stand-alone HTTP executable.\n\nIt includes ready-to-go Local Authentication routes and setup with sessions, using PostgreSQL as a backend.\n\nAll you need to do is complete the indormation in the `/config/ApplicationConfiguration.json` files with your own information and run.\n\nThe concept behind this template is to provide a structure for a larger project to grow into. It contains an HTTP Server config that loads from pre-separated Filters and Routes, a JSON config loader, and directories into which you can organize your handlers, objects and utility functions.\n\n## Compatibility with Swift\n\nThe master branch of this project currently compiles with **Xcode 8.3** or the **Swift 3.1** toolchain on Ubuntu.\n\n## Building \u0026 Running\n\nThe following will clone and build an empty starter project and launch the server on port 8181.\n\n```\ngit clone https://github.com/PerfectlySoft/Perfect-Local-Auth-PostgreSQL-Template.git\ncd Perfect-Local-Auth-PostgreSQL-Template\nswift build\n.build/debug/PerfectLocalAuthPostgreSQLTemplate\n```\n\nYou should see the following output:\n\n```\n[INFO] Starting HTTP server localhost on 0.0.0.0:8181\n```\n\nThis means the server is running and waiting for connections. Access [http://localhost:8181/](http://localhost:8181/) to see the greeting. Hit control-c to terminate the server.\n\n## Starter Content\n\nThe template contains the following directories:\n\n#### config\n\nThe config directory contains two files `ApplicationConfiguration_copy.json` and `ApplicationConfigurationLinux.json`. Add configuration options to these files and add them to be read and assigned in the `config()` function in `config/Config.swift`\n\nDuplicate the `ApplicationConfiguration_copy.json` file and rename to `ApplicationConfiguration.json` and populate with your own information.\n\n#### webroot\n\nThis is for static files and Mustache template files.\n\n### Source \n\n#### / configuration\n\nThe files in this directory are meant to drive configuration of your application. Add configuration options, filters, and routes here.\n\n#### / handlers\n\nThe files in this directory are handler functions for JSON and Web routes.\n\n#### / objects\n\nThis directory is intended as the location for where you place your object classes and structs. There is also an `initializeObjects.swift` file for invoking setup functions in one convenient place.\n\n#### / utility\n\nPlace utility and helper functions here.\n\n## Further Information\nFor more information on the Perfect project, please visit [perfect.org](http://perfect.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperfectlysoft%2Fperfect-local-auth-postgresql-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperfectlysoft%2Fperfect-local-auth-postgresql-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperfectlysoft%2Fperfect-local-auth-postgresql-template/lists"}