Skip to content

An opinionated Serverless starter template including Typescript, Koa & Jest

License

Notifications You must be signed in to change notification settings

jmannau/serverless-ts-template

Repository files navigation

Serverless + Koa + Typescript + Jest Starter Project

Build Status

We often use Serverless for microservices. This is an opinionated starter project for serverless http microservices that uses;

Why Koa?

We often use serverless functions for http microservices. These all require common functionality including:

Koa has a library of well maintained, tested & proven middleware to handle all of the above and much more. These are used by many people, have been designed with security in mind to prevent common attacks. There is no need to manually add CORS headers to responses, nor parse request bodies.

Installation

  • Clone or download this project
  • or $ serverless install --url https://github.com/jmannau/serverless-ts-template --name project-name

then

  1. npm install or yarn install
  2. npm test to run tests or npm test -- --watch to run the tests in watch mode.
  3. npm run sls:offline to start the offline server using serverless-offline

About

An opinionated Serverless starter template including Typescript, Koa & Jest

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published