{"id":18291724,"url":"https://github.com/blazity/next-news","last_synced_at":"2025-04-09T21:17:23.907Z","repository":{"id":207737274,"uuid":"686918034","full_name":"Blazity/next-news","owner":"Blazity","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-08T14:10:57.000Z","size":3178,"stargazers_count":51,"open_issues_count":4,"forks_count":20,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T21:17:18.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hygraph-next-enterprise.vercel.app","language":"TypeScript","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/Blazity.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,"publiccode":null,"codemeta":null}},"created_at":"2023-09-04T08:17:02.000Z","updated_at":"2025-03-02T14:25:07.000Z","dependencies_parsed_at":"2024-01-15T05:40:18.733Z","dependency_job_id":"491b2ebf-66f6-4be5-83b2-096653eea90e","html_url":"https://github.com/Blazity/next-news","commit_stats":null,"previous_names":["blazity/next-news"],"tags_count":0,"template":false,"template_full_name":"Blazity/next-enterprise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blazity%2Fnext-news","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blazity%2Fnext-news/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blazity%2Fnext-news/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blazity%2Fnext-news/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blazity","download_url":"https://codeload.github.com/Blazity/next-news/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111973,"owners_count":21049578,"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-11-05T14:14:58.111Z","updated_at":"2025-04-09T21:17:23.888Z","avatar_url":"https://github.com/Blazity.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next news\n\n[![Project intro image](./project-screenshot.png)](https://hygraph-next-enterprise.vercel.app/en)\n\nWelcome to **Next.js - Hygraph news starter**, an open-source plug and play template and starter for you media apps or blogs! It's build on top of [next-enterprise](https://github.com/Blazity/next-enterprise) so it comes packed with functionalities designed to assist you in creating an app that is not only high-performing and maintainable but also enjoyable to use.\n\n\u003cbr /\u003e\n\u003ca href=\"https://discord.gg/fyWtyNKmfX\" style=\"width: 100%; display: flex; justify-content: center;\"\u003e\n  \u003cimg src=\"https://discordapp.com/api/guilds/1111676875782234175/widget.png?style=banner2\" alt=\"Blazity Discord Banner\"/\u003e\n\u003c/a\u003e\n\u003cbr /\u003e\n\n## Table of Contents\n\n- [Next.js Enterprise Boilerplate](#nextjs-enterprise-boilerplate)\n  - [Table of Contents](#table-of-contents)\n  - [More resources](#more-resources)\n  - [🎯 Getting Started](#-getting-started)\n  - [🚀 Deployment](#-deployment)\n  - [📃 Scripts Overview](#-scripts-overview)\n  - [🤝 Contribution](#-contribution)\n  - [💌 Support](#support)\n  - [📜 License](#-license)\n  - [Contributors](#contributors)\n\n## More resources\n\nYou can find more in depth dive into project's underlying architecture in the [next-enteprise](https://github.com/Blazity/next-enterprise) repository.\n\n## 🎯 Getting Started\n\nTo get started with this boilerplate, follow these steps:\n\n1. Fork \u0026 clone repository:\n\n```bash\n## Don't forget to ⭐ star and fork it first :)\ngit clone https://github.com/\u003cyour_username)/next-news.git\n```\n\n2. Install the dependencies:\n\n```bash\nyarn install --frozen-lockfile\n```\n\n3. Provide required env variables:\n\n```bash\n# url of your site, used for SEO and sitemaps\nNEXT_PUBLIC_SITE_URL=\"my-site.app\"\n# hygraph's graphql content api url - you can find it in API Acess tab on Hygraph\nNEXT_PUBLIC_HYGRAPH_CONTENT_API_URL=\"https://region.hygraph.com/v2/projectId/environment\"\n# secret used for authenticating webhooks (generate it yourself)\nHYGRAPH_WEBOOK_SECRET=\"my-secret-123\"\n```\n\nSearch engine - take it from your algolia project's config\n```bash\nNEXT_PUBLIC_ALGOLIA_API_ID=\"\"\nNEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY=\"\"\n```\n\nAnalytics - used for counting views on your articles. Needed for 'Trending Articles' section\n```bash\nGA_MEASUREMENT_ID=\"\"\nGA_PROPERTY_ID=\"\"\n# Base64 endoded service account containing:\n# {\n#   \"private_key: \"private-key-value\"\n#   \"client_email\": \"service-account-email@project.iam.gserviceaccount.com\"\n# }\nGA_BASE64_SERVICE_ACCOUNT=\"\"\n```\n\n4. Run the development server:\n\n```bash\nyarn dev\n```\n\n5. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n\n## 🚀 Deployment\n\nEasily deploy your Next.js app with [Vercel](https://vercel.com/?utm_medium=default-template\u0026filter=next.js\u0026utm_source=github\u0026utm_campaign=next-news) by clicking the button below:\n\n[![Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FBlazity%2Fnext-news)\n\n## 📃 Scripts Overview\n\nThe following scripts are available in the `package.json`:\n\n- `dev`: Starts the development server along with codegen watcher\n- `build`: Builds the app for production\n- `start`: Starts the production server\n- `lint`: Lints the code using ESLint\n- `lint:fix`: Automatically fixes linting errors\n- `prettier`: Checks the code for proper formatting\n- `prettier:fix`: Automatically fixes formatting issues\n- `analyze`: Analyzes the bundle sizes for Client, Server and Edge environments\n- `storybook`: Starts the Storybook server\n- `build-storybook`: Builds the Storybook for deployment\n- `test`: Runs unit and integration tests\n- `codegen`: Runs codegen on your public content api url\n- `e2e:headless`: Runs end-to-end tests in headless mode\n- `e2e:ui`: Runs end-to-end tests with UI\n- `format`: Formats the code with Prettier\n- `postinstall`: Applies patches to external dependencies\n- `preinstall`: Ensures the project is installed with Yarn\n- `coupling-graph`: **Generates a coupling and cohesion graph for the components**\n\n## 🤝 Contribution\n\nContributions are always welcome! To contribute, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch with a descriptive name.\n3. Make your changes, and commit them using the [Conventional Commits](https://www.conventionalcommits.org/) format.\n4. Push your changes to the forked repository.\n5. Create a pull request, and we'll review your changes.\n\n## Support\n\nIf you're looking for help or simply want to share your thoughts about the project, we encourage you to join our Discord community. Here's the link: [https://blazity.com/discord](https://blazity.com/discord). It's a space where we exchange ideas and help one another. Everyone's input is appreciated, and we look forward to welcoming you.\n\n## 📜 License\n\nThis project is licensed under the MIT License. For more information, see the [LICENSE](./LICENSE) file.\n\n## Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/Pierniki\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/35572075?v=4?s=100\" width=\"100px;\" alt=\"Marcin Szczepaniak\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMarcin Szczepaniak\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Blazity/next-news/commits?author=Pierniki\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/Max-Mogilski\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/42366462?v=4?s=100\" width=\"100px;\" alt=\"Max\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMax\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Blazity/next-news/commits?author=Max-Mogilski\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://bstefanski.com/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/28964599?v=4?s=100\" width=\"100px;\" alt=\"Bart Stefanski\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eBart Stefanski\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Blazity/next-enterprise/commits?author=bmstefanski\" title=\"(next-enterprise) code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/jjablonski-it\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/51968772?v=4?s=100\" width=\"100px;\" alt=\"Jakub Jabłoński\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJakub Jabłoński\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#infra-jjablonski-it\" title=\"(next-enterprise) infra\"\u003e🚇\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n  \u003ctfoot\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" size=\"13px\" colspan=\"7\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg\"\u003e\n          \u003ca href=\"https://all-contributors.js.org/docs/en/bot/usage\"\u003eAdd your contributions\u003c/a\u003e\n        \u003c/img\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tfoot\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblazity%2Fnext-news","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblazity%2Fnext-news","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblazity%2Fnext-news/lists"}