{"id":21169104,"url":"https://github.com/cosmicjs/nextjs-restaurant-website-cms","last_synced_at":"2025-07-09T18:31:52.251Z","repository":{"id":39917756,"uuid":"484559114","full_name":"cosmicjs/nextjs-restaurant-website-cms","owner":"cosmicjs","description":"A restaurant website template built with Next.js and Cosmic","archived":false,"fork":false,"pushed_at":"2022-05-21T17:21:44.000Z","size":44975,"stargazers_count":73,"open_issues_count":1,"forks_count":45,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T05:03:30.305Z","etag":null,"topics":["cms","cosmicjs","headlesscms","nextjs","react"],"latest_commit_sha":null,"homepage":"https://nextjs-restaurant-website-cms.vercel.app","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/cosmicjs.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":"2022-04-22T20:10:32.000Z","updated_at":"2025-04-02T19:38:23.000Z","dependencies_parsed_at":"2022-08-09T15:36:28.305Z","dependency_job_id":null,"html_url":"https://github.com/cosmicjs/nextjs-restaurant-website-cms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cosmicjs/nextjs-restaurant-website-cms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fnextjs-restaurant-website-cms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fnextjs-restaurant-website-cms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fnextjs-restaurant-website-cms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fnextjs-restaurant-website-cms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmicjs","download_url":"https://codeload.github.com/cosmicjs/nextjs-restaurant-website-cms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fnextjs-restaurant-website-cms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502387,"owners_count":23618587,"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":["cms","cosmicjs","headlesscms","nextjs","react"],"created_at":"2024-11-20T15:23:02.934Z","updated_at":"2025-07-09T18:31:47.236Z","avatar_url":"https://github.com/cosmicjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Restaurant Website with Next.js and Cosmic\n\nTo build this app, we’re going to use the following technologies:\n\n- [Next.js](https://nextjs.org/docs) - A React framework for production that makes it easy to spin up a full-stack application.\n- [Cosmic](https://www.cosmicjs.com/) - A Headless CMS enables the independence of the data (content) layer and gives us the ability to quickly manage template content.\n- [Sass](https://sass-lang.com/) -  A stable, and powerful professional-grade CSS extension language.\n\n### Links\n- [Read how the template was built](https://www.cosmicjs.com/articles/how-to-build-a-restaurant-website-with-nextjs)\n- [Install the App Template ](https://www.cosmicjs.com/apps/nextjs-restaurant-website) \n- [View the live demo](https://nextjs-restaurant-website-cms.vercel.app/)\n\n![template](https://user-images.githubusercontent.com/34789741/164322014-c30d57f2-e00f-42dc-997a-fa4ba39803ce.gif)\n\n## Getting started\n\n### Environment Variables\n\nYou'll need to create an .env file in the root of the project. Log in to Cosmic and from Bucket Settings \u003e API Access take the following values:\n\n```bash\n//.env\nCOSMIC_BUCKET_SLUG=your_cosmic_slug\nCOSMIC_READ_KEY=your_cosmic_read_key\n```\n\nInstall the dependencies with\n```bash\nnpm install\n# or\nyarn \n```\n\nThen run the development server:\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.\n\n\n## Deploy on Vercel\n\n\u003cp\u003eUse the following button to deploy to \u003ca href=\"https://vercel.com/\" rel=\"noopener noreferrer\" target=\"_blank\"\u003eVercel\u003c/a\u003e. You will need to add your Bucket API access keys as environment variables. Find these in \u003cem\u003eBucket Settings \u0026gt; API Access\u003c/em\u003e\u003cem\u003e.\u003c/em\u003e\u003c/p\u003e\n\u003cp\u003e\n\u003ca href=\"https://vercel.com/import/git?c=1\u0026s=https://vercel.com/import/git?c=1\u0026s=https://github.com/cosmicjs/nextjs-restaurant-website-cms\u0026env=COSMIC_BUCKET_SLUG,COSMIC_READ_KEY\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.cosmicjs.com/d3f0d5e0-c064-11ea-9a05-6f8a16b0b14c-deploy-to-vercel.svg\" style=\"width: 100px;\" class=\"fr-fic fr-dib fr-fil\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n\nYour feedback and contributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fnextjs-restaurant-website-cms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmicjs%2Fnextjs-restaurant-website-cms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fnextjs-restaurant-website-cms/lists"}