Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 469 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 469 Bytes

serverless-koa-template

Serverless Typescript Template for Koa.js ( or Express.js )

Install

npx degit cjaewon/serverless-koa-template sls-example

Scripts ( yarn )

Dev

yarn start
> sls offline

Deploy

yarn deploy
> sls deploy

Migration Koa.js to Express

// app.ts
import express from 'express';

const app = express();

app.get('/hello-world', (req, res) => {
  res.send('Hello World');
});

export default app;