@geek-fun/serverless-adapter
Version:
Adapter for web frame work express, koa, springboot to run in serverless function as backend of apigateway cross multi cloud provider like aliyun, huawei
31 lines (21 loc) • 1.31 kB
Markdown
# Serverless-Adapter
[](https://github.com/geek-fun/serverless-adapter/actions/workflows/node.yml)
[](https://github.com/geek-fun/serverless-adapter/actions/workflows/release.yml)
[](https://badge.fury.io/js/@geek-fun%2Fserverless-adapter)
[](https://snyk.io/test/github/geek-fun/serverless-adapter)
[](https://opensource.org/licenses/Apache-2.0)
[](https://codecov.io/gh/geek-fun/serverless-adapter)
Adapter for web framework express, koa, springboot to run on top of serverless API Gateway and Functions cross different
cloud provider like aliyun, huawei
## Quick Start
### prerequisites
- Node.js >= 16.x
### Install
```bash
npm install -g @geek-fun/serverless-adapter
```
### Usage
```typescript
const app = express();
export const handler = serverlessAdapter(app)
```