Skip to content

SagarBawanthade/amplify-next-template

AWS Amplify Next.js (App Router) Starter Template

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.


Next.js AWS Amplify Gen 2 Todo App

A full-stack todo application built with Next.js (App Router), React, TypeScript, and AWS Amplify Gen 2.


Overview

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.


Features

  • 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

Prerequisites

  • 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

Getting Started

Clone the repository and install dependencies

  • git clone https://github.com/SagarBawanthade/amplify-next-template.git
  • cd amplify-next-template
  • npm install

Setup Amplify backend outputs

  1. Download amplify_outputs.json from the AWS Amplify Console under Deployed Backend Resources for your app.
  2. Move the file into the root of the project directory:

Run the development server

npm run dev

Open http://localhost:3000 in your browser to view the app.


Deploying to AWS

For detailed instructions on deploying your application, refer to the official AWS Amplify documentation:

Deploy a fullstack app to AWS

  • 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.

Additional Resources


Security

See CONTRIBUTING for security issue notifications and reporting procedure.


License

This library is licensed under the MIT-0 License. See the LICENSE file for details.

About

My Amplify Gen 2 starter application

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published