This repository provides a starter template for creating applications using Next.js (App Router) and AWS Amplify, emphasizing easy setup for authentication, API, and database capabilities.
A full-stack todo application built with Next.js (App Router), React, TypeScript, and AWS Amplify Gen 2.
This template equips you with a foundational Next.js application integrated with AWS Amplify, streamlined for scalability and performance. It is ideal for developers looking to jumpstart their project with pre-configured AWS services like Cognito, AppSync, and DynamoDB.
- Email/password authentication (Amazon Cognito)
- Per-user data isolation (each user sees only their own todos)
- Create and delete todos
- Real-time backend: Amplify Data (DynamoDB/AppSync)
- Amplify Authenticator UI for login/logout
- Live cloud deployment via Amplify Hosting
- Owner-based authorization rules (additional security)
- Amplify sandbox for isolated backend development
- Node.js v18.x (recommended)
- npm v7.x or newer
- git v2.14.1 or newer
- AWS Account with permissions for Amplify and backend deployments
git clone https://github.com/SagarBawanthade/amplify-next-template.gitcd amplify-next-templatenpm install
- Download
amplify_outputs.jsonfrom the AWS Amplify Console under Deployed Backend Resources for your app. - Move the file into the root of the project directory:
npm run dev
Open http://localhost:3000 in your browser to view the app.
For detailed instructions on deploying your application, refer to the official AWS Amplify documentation:
- Connect the GitHub repository to AWS Amplify Console.
- Choose the main branch.
- Click Save and deploy. Amplify will handle CI/CD and backend provisioning automatically.
See CONTRIBUTING for security issue notifications and reporting procedure.
This library is licensed under the MIT-0 License. See the LICENSE file for details.