{"id":21169110,"url":"https://github.com/cosmicjs/nextjs-website-boilerplate","last_synced_at":"2025-07-09T18:31:48.871Z","repository":{"id":31098199,"uuid":"126845373","full_name":"cosmicjs/nextjs-website-boilerplate","owner":"cosmicjs","description":"A Next.js website boilerplate that satisfies some common website requirements.","archived":false,"fork":false,"pushed_at":"2023-01-25T03:58:39.000Z","size":1649,"stargazers_count":95,"open_issues_count":9,"forks_count":48,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T05:04:38.546Z","etag":null,"topics":["boilerplate","cosmicjs","nextjs","reactjs","website"],"latest_commit_sha":null,"homepage":"https://cosmicjs.com/apps/nextjs-website-boilerplate","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/cosmicjs.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}},"created_at":"2018-03-26T14:56:40.000Z","updated_at":"2024-12-06T03:02:57.000Z","dependencies_parsed_at":"2023-02-14T04:31:36.730Z","dependency_job_id":null,"html_url":"https://github.com/cosmicjs/nextjs-website-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cosmicjs/nextjs-website-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fnextjs-website-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fnextjs-website-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fnextjs-website-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fnextjs-website-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmicjs","download_url":"https://codeload.github.com/cosmicjs/nextjs-website-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fnextjs-website-boilerplate/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":["boilerplate","cosmicjs","nextjs","reactjs","website"],"created_at":"2024-11-20T15:23:08.899Z","updated_at":"2025-07-09T18:31:47.710Z","avatar_url":"https://github.com/cosmicjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Website Boilerplate\n![nextjs-website-boilerplate](https://cosmic-s3.imgix.net/ef914540-3106-11e8-8a87-1d4e79eefafa-nextjs-cosmicjs.jpg)\nA website template that satisfies some common website requirements including dynamic pages, blog articles, author management, SEO ability, contact form and website search.  Contributions welcome!\n\n## Demo\n[Click here to view the demo](https://cosmicjs.com/apps/nextjs-website-boilerplate)\n\n\u003e [Read how this app was built](https://cosmicjs.com/articles/nextjs-website-boilerplate-jeoea8au)\n\n## Features\n1. Fully responsive down to mobile w/ [Bootstrap](http://getbootstrap.com) frontend\u003cbr /\u003e\n2. SEO ready\u003cbr /\u003e\n3. A contact form that sends an email to your email(s) of choice and to [Cosmic](https://cosmicjs.com) for easy reference\u003cbr /\u003e\n4. Full-site search functionality\u003cbr /\u003e\n5. All content is easily managed in [Cosmic](https://cosmicjs.com) including pages, blog and contact info.\n\nSign up for [Cosmic](https://cosmicjs.com) to install the demo content and deploy this website.\n\n## Getting Started\n\n```bash\ngit clone https://github.com/cosmicjs/nextjs-website-boilerplate\ncd nextjs-website-boilerplate\nnpm install\n\n# Run in development and serve at localhost:3000\nnpm run dev\n\n# build for production\nnpm run build\n\n# Run in production and serve at localhost:3000\nCOSMIC_BUCKET=your-bucket-slug npm start\n```\nImport the `bucket.json` file into your Cosmic Bucket.  To do this go to Your Bucket \u003e Settings \u003e Import / Export Data.\n\n## Contact form setup\nInstall and deploy the SendGrid Email Function.\n\n\u003cimg src=\"https://cosmic-s3.imgix.net/a07738c0-00d6-11e9-95fe-59d8fdd00c64-sendgrid-email.png?w=1500\" width=\"700\" /\u003e\n\nThe contact form on the contact page uses the [SendGrid Email Function](https://github.com/cosmicjs/send-email-function) to send emails. To deploy your email function go to Your Bucket \u003e Settings \u003e Functions. Install and deploy the SendGrid Function. You will need an account with [SendGrid](https://sendgrid.com/) to add your SendGrid API key.\n\n### Add the SendGrid Function Endpoint\n\n#### in development\nGo to `config/index.js` and edit `SENDGRID_FUNCTION_ENDPOINT` to manually add the URL for testing.\n\n#### in production\nIf you are using the Web Hosting option that's included with every Bucket:\n1. Go to Your Bucket \u003e Settings \u003e Web Hosting\n2. Deploy your Website\n3. Click 'Set Environment Variables' tab and add the SendGrid Function endpoint:\n\nKey | Value\n--- | ---\n| SENDGRID_FUNCTION_ENDPOINT     | https://your-lambda-endpoint.amazonaws.com/dev/send-email\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fnextjs-website-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmicjs%2Fnextjs-website-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fnextjs-website-boilerplate/lists"}