{"id":22004557,"url":"https://github.com/slicknode/starter-nextjs-blog","last_synced_at":"2025-05-05T17:29:58.584Z","repository":{"id":48672398,"uuid":"301122933","full_name":"slicknode/starter-nextjs-blog","owner":"slicknode","description":"NextJS + Slicknode Headless GraphQL CMS blog starter kit","archived":false,"fork":false,"pushed_at":"2022-05-02T04:29:21.000Z","size":550,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T17:29:41.822Z","etag":null,"topics":["cms","graphql","headless","headless-cms","nextjs","nextjs-example","serverless"],"latest_commit_sha":null,"homepage":"https://slicknode.com","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/slicknode.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":"2020-10-04T12:21:25.000Z","updated_at":"2024-12-14T15:36:21.000Z","dependencies_parsed_at":"2022-08-27T08:21:38.347Z","dependency_job_id":null,"html_url":"https://github.com/slicknode/starter-nextjs-blog","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/slicknode%2Fstarter-nextjs-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slicknode%2Fstarter-nextjs-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slicknode%2Fstarter-nextjs-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slicknode%2Fstarter-nextjs-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slicknode","download_url":"https://codeload.github.com/slicknode/starter-nextjs-blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252542247,"owners_count":21764932,"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","graphql","headless","headless-cms","nextjs","nextjs-example","serverless"],"created_at":"2024-11-30T00:16:28.802Z","updated_at":"2025-05-05T17:29:58.564Z","avatar_url":"https://github.com/slicknode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slicknode NextJS Blog Starter\n\nThis is a simple blog site to get you started with [NextJS](https://nextjs.org) and [Slicknode](https://slicknode.com). It has a very minimal setup that you can easily customize and extend.\n\n## Installation\n\nClone the repository and install all dependencies:\n\n    npm install\n\nThen run the setup script:\n\n    npm run setup\n\nThis will create a new Slicknode project with, GraphQL API and the GraphQL endpoint will be added to your local configuration. Just follow the instructions on the screen.\n\nStart the local development server and start hacking:\n\n    npm run dev\n\nFor more information how to build NextJS applications, check out [the official NextJS docs](https://nextjs.org/docs).\n\n## Customizing Data Model\n\nInstall the [Slicknode CLI](https://www.npmjs.com/package/slicknode) globally if you don't already have it installed on your computer:\n\n    npm install -g slicknode@latest\n\nThe Slicknode modules with the data model are located in [modules/](./modules/). To change and extend the data model, open the schema file of the blog module [modules/blog/schema.graphql](./modules/blog/schema.graphql), add your changes and redeploy your\nproject to the Slicknode cloud:\n\n    slicknode deploy\n\nCheck out the [Slicknode documentation](https://slicknode.com/docs/data-modeling/introduction/) for more information on how to model your data, create your own modules, etc.\n\n## Preview Mode\n\nTo load content in preview mode, visit the URL `/api/preview` in your browser. This will set a cookie and enable\nthe preview mode for the duration of the browser session. The Slicknode API will then return all content from the\npreview stage.\n\n**Securing Preview Mode:**\n\nTo secure the preview mode, set a secret via the env variable `PREVIEW_SECRET_TOKEN` in the process that runs the\nserver. ([See the next.js docs](https://nextjs.org/docs/basic-features/environment-variables))\n\nWith the `PREVIEW_SECRET_TOKEN` set, you have to pass the secret to the preview URL to enable the preview mode. For example: `/api/preview?secret=xyz123`.\n\n## Static Site Export\n\nTo generate a static site export of your site to deploy to the web via S3, Netlify etc:\n\n    npm run export\n\nThis will generate a static version of your site in the folder `out/`.\n\n## Run Production Server\n\nIf you need server-side rendering instead of static site export (for example for automatic rebuild of pages), first create a build and then start the server:\n\n    npm run build\n\nStart web server:\n\n    npm start\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslicknode%2Fstarter-nextjs-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslicknode%2Fstarter-nextjs-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslicknode%2Fstarter-nextjs-blog/lists"}