{"id":13518643,"url":"https://github.com/RNKushwaha/awesometech","last_synced_at":"2025-03-31T10:32:05.811Z","repository":{"id":89074767,"uuid":"324794990","full_name":"RNKushwaha/awesometech","owner":"RNKushwaha","description":"🚀⚡️ Blazing fast blog built with Gatsby and the Cosmic Headless CMS 🔥","archived":false,"fork":false,"pushed_at":"2020-12-27T15:50:48.000Z","size":848,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-22T16:07:58.987Z","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/RNKushwaha.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}},"created_at":"2020-12-27T15:50:41.000Z","updated_at":"2020-12-27T15:50:50.000Z","dependencies_parsed_at":"2023-06-13T20:09:00.082Z","dependency_job_id":null,"html_url":"https://github.com/RNKushwaha/awesometech","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/RNKushwaha%2Fawesometech","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RNKushwaha%2Fawesometech/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RNKushwaha%2Fawesometech/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RNKushwaha%2Fawesometech/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RNKushwaha","download_url":"https://codeload.github.com/RNKushwaha/awesometech/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246145056,"owners_count":20730494,"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:47.251Z","updated_at":"2025-03-31T10:32:05.788Z","avatar_url":"https://github.com/RNKushwaha.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%2FRNKushwaha%2Fawesometech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRNKushwaha%2Fawesometech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRNKushwaha%2Fawesometech/lists"}