{"id":15978395,"url":"https://github.com/bholmesdev/prismic-webhooks","last_synced_at":"2025-04-04T18:11:33.888Z","repository":{"id":190306984,"uuid":"682352448","full_name":"bholmesdev/prismic-webhooks","owner":"bholmesdev","description":"DYI webhooks demo project","archived":false,"fork":false,"pushed_at":"2023-08-24T03:38:34.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T03:16:42.592Z","etag":null,"topics":["blog"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/bholmesdev.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-24T01:48:57.000Z","updated_at":"2024-07-13T18:04:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea0f12b7-bea6-4d96-977b-2e2fc0d524a7","html_url":"https://github.com/bholmesdev/prismic-webhooks","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.0625,"last_synced_commit":"1d044fc7987b0203d9f24120be6d9fe8483436c4"},"previous_names":["bholmesdev/prismic-webhooks"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fprismic-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fprismic-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fprismic-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bholmesdev%2Fprismic-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bholmesdev","download_url":"https://codeload.github.com/bholmesdev/prismic-webhooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226215,"owners_count":20904465,"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":["blog"],"created_at":"2024-10-07T23:20:19.343Z","updated_at":"2025-04-04T18:11:33.859Z","avatar_url":"https://github.com/bholmesdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webhook demo - CMiniS\n\nThis is a simple demo of webhooks with a dummy CMS and a dummy static site builder. Built on [Deno](https://deno.com/) and deployable to [Railway](https://railway.app).\n\n## Architecture\n\nYou will find 2 separate servers in this repo:\n- `cms/` - A CMS server that lets you edit a post and configure webhooks to call on each update\n- `www/` - A www server with a `/build-hook` URL to triggers a build\n\n## Get started\n\n1. Install [Deno](https://deno.land/manual@v1.36.2/getting_started/installation) on your machine.\n2. Seed the CMS' SQLite database by running `deno task cms:seed`.\n3. Start the `www` and `cms` servers by running `deno task dev`.\n5. Visit the CMS at http://localhost:3000. This will have a sample title and body displayed from our SQLite database.\n\n### Test your webhook\n\n1. Visit the example site at http://localhost:5000. You should see a placeholder message noting the site isn't built yet. Let's change that!\n2. Head back to the CMS server at http://localhost/3000, and configure a webhook by submitting http://localhost:5000/build-hook under the Webhooks form.\n3. Edit the post contents and hit \"Update.\" Heading back to http://localhost:5000, you should see your built site 🥳 There should also be a generated `www/built.html` file in your project directory.\n\n## Deploy the Railway\n\nThis repo is configured to deploy to [Railway](https://railway.app).\n\n1. Publish your clone of this repository to a personal GitHub account. This is because Railway relies on GitHub repositories for live redeployments.\n2. Create a new Railway account with your GitHub credentials\n3. Create a new project from your new GitHub repository.\n4. Under \"Settings,\" update the `build` and `start` commands for the server you would like to deploy. This example configured the CMS service for deployment:\n\n\u003cimg width=\"925\" alt=\"image\" src=\"https://github.com/bholmesdev/prismic-webhooks/assets/51384119/be3af5f3-ee6d-4842-befd-d794a3afe0a0\"\u003e\n\n5. Under \"Settings \u003e Environment,\" create a custom domain with the Add button. This should expose your CMS service on a public URL:\n\n\u003cimg width=\"641\" alt=\"image\" src=\"https://github.com/bholmesdev/prismic-webhooks/assets/51384119/f3c91a68-bd39-4fe7-b2bc-23fb7a4d79b6\"\u003e\n\n6. To deploy the `www` application, you'll need to create a _second_ new project using the same GitHub repository, and replace the above deploy command with `deno task www:serve`.\n7. With each of these deployed, you can follow the \"Test your webhook\" instructions above using the public Railway domain as your webhook.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbholmesdev%2Fprismic-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbholmesdev%2Fprismic-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbholmesdev%2Fprismic-webhooks/lists"}