/serverless-template_v1

Quick AWS Lambda / Serverless template w/ TypeScript

Primary LanguageTypeScript

DEPRECATION NOTICE

This template has been superceded by serverless-template

Serverless Template

Template repository for Serverless AWS Lambda apps using the Serverless Framework

XO code style

Overview

Run fast with a new AWS Lambda serverless project using a quick and dirty TypeScript stack!

Stack

How to use

  1. Create a new repository using this as a template
  2. npm i to get the dependencies installed
  3. Modify the package.json and this readme to fit your project
  4. Run the local build with npm run serve! (alternatively serve:watch will run with nodemon)

Deploying

  1. Set your profile, role, region, service name, and domain info in serverless.yml
  2. Run npm run deploy to deploy to a dev stage, or npm run deploy:production to deploy to production.

Q + A

Why AVA? Why not Jest?

  • Personal preference. I find Jest clunky in comparison, but it has its merits. Feel free to swap it out.

Why use such a strict linter?

  • I like clean code, and personally it forces me to write more readable code. The style is automagically enforced by Prettier anyways.

TODO:

  • Write better docs.