Serverless Typescript Template for Koa.js ( or Express.js )
npx degit cjaewon/serverless-koa-template sls-example
Dev
yarn start
> sls offline
Deploy
yarn deploy
> sls deploy
// app.ts
import express from 'express';
const app = express();
app.get('/hello-world', (req, res) => {
res.send('Hello World');
});
export default app;