All Projects → compwright → aws-serverless-koa

compwright / aws-serverless-koa

Licence: MIT license
This library enables you to utilize AWS Lambda and Amazon API Gateway to respond to web and API requests using the Koa.js application framework

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to aws-serverless-koa

koa-subdomain
Simple and lightweight Koa middleware to handle multilevel and wildcard subdomains
Stars: ✭ 23 (-37.84%)
Mutual labels:  koa
graphql-ufc-api
GraphQL server for UFC's public API
Stars: ✭ 26 (-29.73%)
Mutual labels:  koa
koa-session-mongoose
Mongoose store for Koa sessions
Stars: ✭ 29 (-21.62%)
Mutual labels:  koa
koa-shopify-auth
DEPRECATED Middleware to authenticate a Koa application with Shopify
Stars: ✭ 82 (+121.62%)
Mutual labels:  koa
koa-react-redux-universal-boilerplate
[Unmaintained] A fullstack Koa + React + Redux Universal Boilerplate to speed up your development process.
Stars: ✭ 22 (-40.54%)
Mutual labels:  koa
koa-xml-body
koa middleware to parse xml request body
Stars: ✭ 36 (-2.7%)
Mutual labels:  koa
numvalidate
Phone number validation REST API
Stars: ✭ 54 (+45.95%)
Mutual labels:  koa
koahub-cli
KoaHub CLI -- KoaHub.js的开发工具,自动babel编译 ES6/7(Generator Function, Class, Async & Await)并且文件修改后自动重启。
Stars: ✭ 16 (-56.76%)
Mutual labels:  koa
js
serverless your express/koa/restify apps
Stars: ✭ 21 (-43.24%)
Mutual labels:  koa
web-onefx-boilerplate
Full-stack React Framework for building web and backend
Stars: ✭ 34 (-8.11%)
Mutual labels:  koa
koa-whistle
This package is no longer maintained(该模块不再维护)
Stars: ✭ 11 (-70.27%)
Mutual labels:  koa
WebAppReader
基于 html5 、 Vue.js 、 Koa、Node.js 以及 EJS 的手机小说阅读器。使用 node.js 模拟后台数据,无实际后台,完全的前后端分离开发。
Stars: ✭ 15 (-59.46%)
Mutual labels:  koa
tsed
📐 Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone.
Stars: ✭ 2,350 (+6251.35%)
Mutual labels:  koa
vue-koa2-login
🍥 Vue + Koa2 实现前后端注册登录流程
Stars: ✭ 23 (-37.84%)
Mutual labels:  koa
nodejs-koa-blog
基于 Node.js Koa2 实战开发的一套完整的博客项目网站
Stars: ✭ 1,611 (+4254.05%)
Mutual labels:  koa
chatroom
💬chat
Stars: ✭ 56 (+51.35%)
Mutual labels:  koa
aotoo-hub
aotoo-hub是一套通用型前端脚手架,无技术栈依赖,聚焦于多人协作及工程化。帮助开发者快速产出项目。支持react/vue/小程序/node
Stars: ✭ 74 (+100%)
Mutual labels:  koa
deploy
Used to deploy project, includes webhooks.
Stars: ✭ 15 (-59.46%)
Mutual labels:  koa
tie
🧶A Node.js Framework based on TypeScript and Express.
Stars: ✭ 30 (-18.92%)
Mutual labels:  koa
universal-react-starter-kit
Universal React Starter Kit is an universal web application framework using koa, react, redux and webpack.
Stars: ✭ 13 (-64.86%)
Mutual labels:  koa

aws-serverless-koa

This library enables you to utilize AWS Lambda and Amazon API Gateway to respond to web and API requests using the Koa.js application framework

Installation

$ npm install --save aws-serverless-koa

Usage

const Koa = require('koa');
const serverless = require('aws-serverless-koa');

const app = new Koa();

app.use(async ctx => {
  ctx.body = 'Hello, world!';
});

module.exports.handler = serverless(app);

Middleware

This package includes middleware to easily get the event object Lambda receives from API Gateway (based on aws-serverless-express/middleware):

const awsServerlessKoaMiddleware = require('aws-serverless-koa/middleware');
app.use(awsServerlessKoaMiddleware());
app.use(ctx => {
  ctx.body = ctx.apiGateway.event
});

License

MIT license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].