{"id":13635598,"url":"https://github.com/PerfectExamples/Perfect-Blog-Mustache","last_synced_at":"2025-04-19T04:31:18.403Z","repository":{"id":121664417,"uuid":"69502951","full_name":"PerfectExamples/Perfect-Blog-Mustache","owner":"PerfectExamples","description":"An Example Blog \u0026 Mustache Template System for Perfect","archived":false,"fork":false,"pushed_at":"2023-02-15T11:21:20.000Z","size":39,"stargazers_count":31,"open_issues_count":2,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-09T05:34:36.468Z","etag":null,"topics":["mustache","mustache-templating","perfect","server-side-swift","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"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/PerfectExamples.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":"2016-09-28T20:55:00.000Z","updated_at":"2022-03-12T00:58:02.000Z","dependencies_parsed_at":"2024-08-02T00:13:01.476Z","dependency_job_id":null,"html_url":"https://github.com/PerfectExamples/Perfect-Blog-Mustache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectExamples%2FPerfect-Blog-Mustache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectExamples%2FPerfect-Blog-Mustache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectExamples%2FPerfect-Blog-Mustache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectExamples%2FPerfect-Blog-Mustache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerfectExamples","download_url":"https://codeload.github.com/PerfectExamples/Perfect-Blog-Mustache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249606322,"owners_count":21298851,"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":["mustache","mustache-templating","perfect","server-side-swift","swift"],"created_at":"2024-08-02T00:00:47.938Z","updated_at":"2025-04-19T04:31:18.118Z","avatar_url":"https://github.com/PerfectExamples.png","language":"Swift","readme":"# Perfect Blog Mustache Example[简体中文](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.0-orange.svg?style=flat\" alt=\"Swift 3.0\"\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\nAn Example Blog \u0026 Mustache Template System for Perfect\n\nThis project demonstrates the following:\n\n* Mustache templating\n* URL routing and handlers\n* URL Variables\n* Static file serving\n* SQLite3 database setup, and search.\n\nThis package builds with Swift Package Manager and is part of the [Perfect](https://github.com/PerfectlySoft/Perfect) project.\n\nEnsure you have installed Xcode 8.0 or later.\n\n## Setup - Xcode 8\n\n* Check out or download the project;\n* In terminal, navigate to the directory and execute\n\n```\nswift package generate-xcodeproj\n```\n\n* Open `Perfect-Blog-Mustache.xcodeproj`\n\nDue to the complexity of running static file serving from Xcode, we suggest running this project from Terminal.\n\n## Setup - Terminal\n\n* Check out or download the project;\n* In terminal, navigate to the directory \n* Execute `swift build`\n* Once the project has compiled, execute `./.build/debug/Perfect-Blog-Mustache`\n\n```\n[INFO] Starting HTTP server on 0.0.0.0:8181 with document root ./webroot\n```\n\n## Routes\n\n* [http://localhost:8181](http://localhost:8181) - Generates the list of blog posts\n* http://localhost:8181/story/{storyid} - Linked to from the blog list, this displays the detail of the blog post.\n\n\n## Further Information\nFor more information on the Perfect project, please visit [perfect.org](http://perfect.org).\n\n\n","funding_links":[],"categories":["Samples"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerfectExamples%2FPerfect-Blog-Mustache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPerfectExamples%2FPerfect-Blog-Mustache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerfectExamples%2FPerfect-Blog-Mustache/lists"}