cho0o0 / TypeScript-LocalStack-Lambda-Sample-Project

A sample project to show how to integrate TypeScript, Jest, Localstack, Serverless Framework, and CircleCI together

Home Page:https://circleci.com/gh/cho0o0/workflows/TypeScript-LocalStack-Lambda-Sample-Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript LocalStack Lambda Sample Project

CircleCI

Introduction

This is a sample project to show how to integrate TypeScript, Jest, Localstack, Serverless Framework, and CircleCI together to achieve a relatively seamless AWS lambda development workflow locally.

Stacks Used

Development

  • TypeScript: To write the code more fluently.
  • Webpack: To bundle third-party libraries and transpile TypeScript to JavaScript for Node.js 10.X support.
  • ESLint + Prettier: To check and format code for avoiding careless mistakes.

Test

  • Jest: To write, run test code and collect results.
  • Localstack: To emulate AWS services i.e. S3, IAM, CloudFront locally.
  • Docker: To provide an environment with Localstack prepared.
  • Serverless: To deploy code onto Localstack.
  • CircleCI: To perform online CI.

Note

  • Babel is not introduced since tools such as ts-node and ts-jest have already covered many features of Babel.
  • The deployment to staging or production environment is not covered in this sample project. People can consider Terraform or AWS CDK for such purpose.

LICENSE

Apache License 2.0

About

A sample project to show how to integrate TypeScript, Jest, Localstack, Serverless Framework, and CircleCI together

https://circleci.com/gh/cho0o0/workflows/TypeScript-LocalStack-Lambda-Sample-Project


Languages

Language:JavaScript 52.2%Language:TypeScript 47.8%