Skip to content

This repository is an example of a modular, highly-scalable backend example using the Nest.js framework with AWS lambdas technology that can allow to build efficient and scalable API

License

Notifications You must be signed in to change notification settings

0x4E0FF/Serverless-Nest

Repository files navigation

Serverless & NestJS Template

This project contains a backend starter template for running NestJS GraphQL APIs on AWS Lambda with security and performance best practices.

NestJS TypeScript AWS

Features

  • MySQL Database config with TypeORM migrations
  • Docker database for local development
  • AWS Deployment with Serverless Framework
  • AWS Lambda NodeJS 18x configuration and optimizations

Authentication/Authorization

  • Basic example of JWT authentication is included as an example

Technology Choices

NestJS

  • Opinionated, mature backend framework with active community
  • Supports dependency injection out of the box
  • First-class typescript support

AWS Lambda

  • Pay-per-use pricing is ideal for early-stage startups where traffic and access patterns are unknown
  • Cold starts can be minimized by keeping package bundles small, caching server between invocations and keeping lambdas warm

Serverless framework

  • Strong community of plugins and supports for NodeJS/Typescript

Dependencies

  • NodeJS
  • NVM brew install nvm
  • Yarn
  • Docker
  • VSCode
  • AWS Account

Setup

To be continued...

About

This repository is an example of a modular, highly-scalable backend example using the Nest.js framework with AWS lambdas technology that can allow to build efficient and scalable API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published