This example uses Next.js 15 with server actions to create two different types of chat rooms. The first is powered by Amplify AI kit, and allows users to chat with AI users. The other allows multiple users to sign in and chat with each other. The app uses AWS Amplify Gen 2 and uses various AWS services.
This app has the following features:
- Amplify Gen 2
- Next.js 15
- shadcn/ui
- Tailwind
- Amazon Cognito
- AWS AppSync Events
- AWS AppSync
- AWS Amplify AI kit
- Node.js 18+ installed
- AWS account that has been set up for AWS Amplify local setup and has enabled access to the Claude 3.5 sonnet model in Amazon Bedrock.
- Clone the repository
- Install the dependencies with your favorite Javscript package manager. For example,
npm install - Run
npx ampx sandboxto spin up a sandbox cloud backend - Run
npm run devto start up the Next.js React app locally.
After testing locally you can run it in production on Amplify Hosting using this guide.