{"id":13517040,"url":"https://github.com/bahdcoder/gatsby-cloud","last_synced_at":"2026-03-27T13:30:16.349Z","repository":{"id":100513292,"uuid":"314551682","full_name":"bahdcoder/gatsby-cloud","owner":"bahdcoder","description":"🚀⚡️ Blazing fast blog built with Gatsby and the Cosmic Headless CMS 🔥","archived":false,"fork":false,"pushed_at":"2020-11-20T12:46:19.000Z","size":848,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-01T01:26:52.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bahdcoder.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}},"created_at":"2020-11-20T12:46:12.000Z","updated_at":"2021-01-11T10:01:39.000Z","dependencies_parsed_at":"2023-05-15T14:45:56.926Z","dependency_job_id":null,"html_url":"https://github.com/bahdcoder/gatsby-cloud","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/bahdcoder%2Fgatsby-cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahdcoder%2Fgatsby-cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahdcoder%2Fgatsby-cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahdcoder%2Fgatsby-cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahdcoder","download_url":"https://codeload.github.com/bahdcoder/gatsby-cloud/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239946902,"owners_count":19723017,"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-08-01T05:01:28.936Z","updated_at":"2026-03-27T13:30:16.286Z","avatar_url":"https://github.com/bahdcoder.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Gatsby + Cosmic\n\n![gatsby-blog-cosmicjs](https://cdn.cosmicjs.com/fe5196f0-42c2-11ea-8d10-df553329919a-gatsby-blog-cosmic.png \"The index page of the starter blog\")\n\n\u003e This repo contains an example blog website that is built with [Gatsby](https://www.gatsbyjs.org/), and [Cosmic](https://www.cosmicjs.com).\n\n\u003e [See live demo hosted on Netlify](https://gatsby-blog-cosmicjs.netlify.com/)\n\n\u003e Uses the [Cosmic Gatsby Source Plugin](https://www.npmjs.com/package/gatsby-source-cosmicjs)\n\n## Prerequisites\n\n- Node (I recommend using v8.2.0 or higher)\n- [Gatsby CLI](https://www.gatsbyjs.org/docs/)\n\n## Install\n\n``` bash\n# Make sure that you have the Gatsby CLI program installed\nnpm install --global gatsby-cli\n\n# run from your CLI\ngatsby new gatsby-example-blog https://github.com/cosmicjs/gatsby-blog-cosmicjs\n```\nIn `gatsby-config.js` you need to add configuration for your Cosmic Bucket\n\n``` javascript\n{\n  resolve: 'gatsby-source-cosmicjs',\n  options: {\n    bucketSlug: '', /* Find this in Your Bucket \u003e Settings \u003e Basic Settings after logging in at https://app.cosmicjs.com/login */\n    objectTypes: ['posts', 'settings'], /* Object types to fetch */\n    apiAccess: {\n      read_key: '', /* Find this in Your Bucket \u003e Settings \u003e API Access after logging in at https://app.cosmicjs.com/login */\n    },\n    localMedia: true /* Optional. If you want to enable local image for Gatsby Image */\n  }\n},\n```\n\nThen\n\n``` bash\n# Then you can run it by\ncd gatsby-example-blog\nnpm run develop\n```\n\n## Enable content auto refresh\nTo enable content auto refresh, open another terminal window and run the following command:\n```\nnpm run poll-content\n```\nThis will poll the content in your Bucket for any updates and automatically refresh it in your blog during development. Learn more about refreshing content in the [Gatsby docs](https://www.gatsbyjs.com/docs/refreshing-content/).\n\n## Deploy to Netlify\nYou can deploy to Netlify in a few steps using their CLI. Run the following commands from the root folder.\n```\nnpm i -g netlify-cli\nnetlify deploy\n```\n\n#### Set your Environment Variables in Netlify\nIn the Netlify dashboard, set your environment variables located in \u003ci\u003eSite Settings \u003e Build and Deploy \u003e Environment\u003c/i\u003e. Find your Cosmic Bucket keys located in \u003ci\u003eBucket \u003e Basic Settings\u003c/i\u003e after \u003ca href=\"https://app.cosmicjs.com/login\"\u003elogging in\u003c/a\u003e.\n```\nCOSMIC_BUCKET=\u003cyour-bucket-slug\u003e\nCOSMIC_READ_KEY=\u003cyour-bucket-read-key\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahdcoder%2Fgatsby-cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahdcoder%2Fgatsby-cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahdcoder%2Fgatsby-cloud/lists"}