{"id":15016538,"url":"https://github.com/brob/netlify-fauna-bookmarks","last_synced_at":"2025-04-12T09:31:28.182Z","repository":{"id":35704275,"uuid":"208098541","full_name":"brob/netlify-fauna-bookmarks","owner":"brob","description":"Example repository for creating a bookmarking app using FaunaDB, Netlify and 11ty","archived":false,"fork":false,"pushed_at":"2023-12-15T05:45:39.000Z","size":1226,"stargazers_count":31,"open_issues_count":23,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-31T11:51:33.810Z","etag":null,"topics":["11ty","faunadb","netlify","netlify-functions"],"latest_commit_sha":null,"homepage":"https://fauna-bookmarks.netlify.com/","language":"JavaScript","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/brob.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}},"created_at":"2019-09-12T16:43:44.000Z","updated_at":"2023-08-22T14:40:51.000Z","dependencies_parsed_at":"2023-02-13T05:40:14.824Z","dependency_job_id":null,"html_url":"https://github.com/brob/netlify-fauna-bookmarks","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/brob%2Fnetlify-fauna-bookmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnetlify-fauna-bookmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnetlify-fauna-bookmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnetlify-fauna-bookmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brob","download_url":"https://codeload.github.com/brob/netlify-fauna-bookmarks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223510342,"owners_count":17157306,"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":["11ty","faunadb","netlify","netlify-functions"],"created_at":"2024-09-24T19:49:02.945Z","updated_at":"2024-11-07T12:03:46.724Z","avatar_url":"https://github.com/brob.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FaunaDB, 11ty and Netlify Bookmarking site\n\nThis repository corresponds to an article on creating your very own bookmarking site with the power of FaunaDB, 11ty and Netlify. When the article is published, I'll update with a link.\n\n## Setup\n\nIf you want this for your own, there are a few things you'll need to do, first, deploy this repo to Netlify with the button below (what this does: Forks the repository and then deploys that forked repository to your Netlify account)\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/brob/netlify-fauna-bookmarks)\n\n\n### Requirements\n\n* A FaunaDB account\n    * A FaunaDB \"Collection\" called \"links\"\n* Environment Variables in Netlify\n    * FAUNADB_SERVER_SECRET (your server secret from Fauna)\n    * API_KEY (a simple API you'll use as a query parameter to confirm it's you posting)\n* Netlify Dev CLI `npm install -g netlify-cli`\n\n## Installation and local work\n\n1. `npm install`\n2. `netlify dev`\n\nSeriously, that should be all it takes\n\n## Editing\n\nThe site files live in the `/src` directory. This is where 11ty will build the site from. It will publish the files to `/app`.\n\nThe Lambda Function lives in `/lambda`. The main functions doing the heavy lifting are in `/lambda/bookmarks/create.js`.\n\n## Setting up a shortcut\n\nIn the article, I discuss setting up an iOS Shortcut to post to our netlify function (which should live at `http://siteurl.com/.netlify/functions/bookmarks`).\n\nTo add a bookmark you send a request with a query parameter structured like this:\n\n`http://siteurl.com/.netlify/functions/bookmarks?url=http://google.com\u0026apiKey=your-api-key`\n\nThe article will show you the steps to create the iOS shortcut, but you could also make a small JavaScript bookmarklet to do the same thing.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Fnetlify-fauna-bookmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrob%2Fnetlify-fauna-bookmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Fnetlify-fauna-bookmarks/lists"}