This is an example Fastify API app that is deployed to AWS using SST.
- Clone the repository.
- Run
pnpm install
to install the dependencies. - Make changes to the repository.
- Run
pnpm compile
to compile the TypeScript files.
This project uses SST for local testing and deployment.
Run pnpm dlx sst@latest dev
to start the local testing environment.
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.
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`
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
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.