focusOtter / fullstack-deploy-with-nextjs-cdk

How Amplify Hosting can be extended to allow deployment of CDK backend. This allows the CDK to deploy our frontend, backends, run codegen for our API and more

Home Page:https://youtu.be/6-Z7xJCp-Zw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextJS & AWS CDK Full-Stack App

'YouTube Thumbnail

Unlock the power of Next JS and AWS in real-time deployment! This repo accompanies the tutorial where we navigate the CI/CD pipeline to build an AI application using TypeScript. A perfect resource for aspiring full-stack developers.

Video Tutorial

🎥 Watch the full tutorial on YouTube

Video Chapters

  • 00:00 Introduction
  • 01:24 Setting Up the Application
  • 03:43 Deploying the CDK Backend
  • 08:14 Connecting Frontend to Backend
  • 11:38 Automating Code Generation
  • 15:12 Deploying the Full App
  • 18:34 Testing the Deployed App
  • 22:26 Successfully Calling the API
  • 24:27 Conclusion

Repo Structure

  • 🖥️ Root: Contains the NextJS frontend application.
  • 🛠️ /backend: Houses the AWS CDK app for backend deployment.

Installation & Setup

Pre-requisites

  • Make sure you have Node.js and npm installed.
  • AWS CLI configured with appropriate permissions.

Steps

  1. Frontend Setup
npm install
npm run dev
  1. Backend Setup
cd backend
npm install
{update the values in `lib/backend-stack.ts`}
cdk deploy

Usage

Once both frontend and backend setups are done, you can access the NextJS app on http://localhost:3000 and interact with the AI functionalities backed by AWS resources deployed via CDK.

Contributions

Feel free to fork the repo and make contributions. Pull requests are welcome!

License

MIT


Happy coding! If you find this resource helpful, consider giving the YouTube video a 👍 and subscribe for more tutorials.

About

How Amplify Hosting can be extended to allow deployment of CDK backend. This allows the CDK to deploy our frontend, backends, run codegen for our API and more

https://youtu.be/6-Z7xJCp-Zw


Languages

Language:TypeScript 92.5%Language:JavaScript 5.3%Language:CSS 2.2%