This project demonstrates how to run a simple Node.js app using Fargate via ECS (Elastic Container Service) with SST (Serverless Stack) v3.
To run this application, follow these steps:
- Ensure you have Node.js installed on your system.
- Clone this repository to your local machine.
- Install the dependencies by running
npm install
in the project root directory. - Provision the infrastructure via
npx sst dev
. - Build and push the Docker image by running
npm run docker:build
. - Access your application via
http://localhost:3000
.
This application is a simple Node.js app that runs in a Docker container, deployed to Fargate via ECS using SST v3 for infrastructure provisioning.
backend
: Containing the backend filesapp
: The simple Next.js-based frontendsst.config.ts
: SST/Pulumi-based infrastructure configuration
To learn more about Fargate, ECS, and SST, check out the AWS documentation and SST documentation.