Skip to content

timmo001/example-fastify-sst-aws

Repository files navigation

Example Fastify API App with SST Deployment to AWS

This is an example Fastify API app that is deployed to AWS using SST.

Development

Pre-requisites

Setup

  1. Clone the repository.
  2. Run pnpm install to install the dependencies.
  3. Make changes to the repository.
  4. Run pnpm compile to compile the TypeScript files.

SST

This project uses SST for local testing and deployment.

Local Testing

Run pnpm dlx sst@latest dev to start the local testing environment.

Deployment

This application is configured to deploy when changes are pushed to the dev and main branches.

Run pnpm dlx sst@latest deploy --stage [environment] to deploy the application.

Deploy to Development

Changes to the dev branch will trigger a deployment to the development environment.

You can also manually deploy to the development environment by running:

pnpm dlx sst@latest deploy --stage development`
Deploy to Production

Changes to the main branch will trigger a deployment to the production environment.

You can also manually deploy to the production environment by running:

pnpm dlx sst@latest deploy --stage production

Removing a Deployment

To remove a deployment, run pnpm dlx sst@latest remove --stage [environment].

By default pnpm dlx sst@latest remove will remove your personal environment. See the SST documentation for more information.

About

Example Fastify API app deployed to AWS with SST

Topics

Resources

Stars

Watchers

Forks