{"id":15715299,"url":"https://github.com/crazyoptimist/amplify-nextjs-starter","last_synced_at":"2025-03-30T20:16:13.069Z","repository":{"id":118359608,"uuid":"466270629","full_name":"crazyoptimist/amplify-nextjs-starter","owner":"crazyoptimist","description":"Amplify Next.js Starter","archived":false,"fork":false,"pushed_at":"2022-03-04T21:06:45.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T22:59:04.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/crazyoptimist.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-04T21:06:27.000Z","updated_at":"2022-03-04T21:06:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"63ecace4-1e53-46e8-a148-3290306a48db","html_url":"https://github.com/crazyoptimist/amplify-nextjs-starter","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/crazyoptimist%2Famplify-nextjs-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Famplify-nextjs-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Famplify-nextjs-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Famplify-nextjs-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazyoptimist","download_url":"https://codeload.github.com/crazyoptimist/amplify-nextjs-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246372746,"owners_count":20766635,"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-10-03T21:40:52.628Z","updated_at":"2025-03-30T20:16:13.025Z","avatar_url":"https://github.com/crazyoptimist.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amplify + Next.js Starter\n\nBuilt with Next.js and Amplify\n- MUI v5 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\nInstall deps and run the dev server\n```bash\nyarn\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Deployment\n\n\"amplify status\" will show you what you've added already and if it's locally configured or deployed  \n\"amplify add \u003ccategory\u003e\" will allow you to add features like user login or a backend API  \n\"amplify push\" will build all your local backend resources and provision it in the cloud  \n\"amplify console\" to open the Amplify Console and view your project status  \n\"amplify publish\" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud  \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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Famplify-nextjs-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyoptimist%2Famplify-nextjs-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Famplify-nextjs-starter/lists"}