{"id":13543231,"url":"https://github.com/kazukinagata/next-amplify-template","last_synced_at":"2025-04-02T12:31:52.755Z","repository":{"id":176808107,"uuid":"346955373","full_name":"kazukinagata/next-amplify-template","owner":"kazukinagata","description":"Boilerplate for Nextjs x Amplify","archived":false,"fork":false,"pushed_at":"2021-03-13T04:30:40.000Z","size":74,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-03T10:32:08.925Z","etag":null,"topics":["amplify","next-js","nextjs-boilerplate","nextjs-starter","nextjs-typescript"],"latest_commit_sha":null,"homepage":"","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/kazukinagata.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":"2021-03-12T05:48:55.000Z","updated_at":"2023-09-08T18:29:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b74f84f-021a-43ff-8528-3133f6f03fa7","html_url":"https://github.com/kazukinagata/next-amplify-template","commit_stats":null,"previous_names":["kazukinagata/next-amplify-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazukinagata%2Fnext-amplify-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazukinagata%2Fnext-amplify-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazukinagata%2Fnext-amplify-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazukinagata%2Fnext-amplify-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kazukinagata","download_url":"https://codeload.github.com/kazukinagata/next-amplify-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246815729,"owners_count":20838495,"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":["amplify","next-js","nextjs-boilerplate","nextjs-starter","nextjs-typescript"],"created_at":"2024-08-01T11:00:26.916Z","updated_at":"2025-04-02T12:31:47.741Z","avatar_url":"https://github.com/kazukinagata.png","language":"TypeScript","funding_links":[],"categories":["チュートリアル"],"sub_categories":["Next.js"],"readme":"This is a [Next.js](https://nextjs.org/) x [Amplify](https://docs.amplify.aws/) boilerplate that includes following;\n\n- [material-ui](https://github.com/mui-org/material-ui) with ssr support\n- [styled-components](https://github.com/styled-components/styled-components) with ssr support\n- [react-toastify](https://github.com/fkhadra/react-toastify)\n- [nprogress](https://github.com/rstacruz/nprogress)\n- Configured Amplify auth context, use `useAuthCtx` to retrieve current user\n- Convenience utilities such as `callGraphQL` and `checkAuth` to use with typescript\n- Simple withSSRAuth hoc for SSR\n\n\n## Getting Started\n\nFirst, install amplify CLI if have not installed yet:\n\n```bash\nnpm install -g @aws-amplify/cli\n```\n\nThen initialize amplify project\n\n```bash\namplify init\n```\n\nNext, install packages and run the development server:\n\n```bash\nnpm install\n# or\nyarn\n```\n\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\n\n## Utils\n\n### useAuthCtx\n\n```typescript\n  const {data, loading} = useAuthCtx()\n  // data: CognitoUser | null\n  // loading: boolean\n\n```\n\n### withSSRAuth\n\n```typescript\n  // pages/index.tsx\n\n  export const getServerSideProps = withSSRAuth(async (ctx) =\u003e {\n    return {\n      props: {}\n    }\n  })\n```\n\n## Lisence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazukinagata%2Fnext-amplify-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkazukinagata%2Fnext-amplify-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazukinagata%2Fnext-amplify-template/lists"}