项目作者: daisuke-awaji

项目描述 :
⚡️ serverless appsync offline template ⚡️
高级语言: TypeScript
项目地址: git://github.com/daisuke-awaji/serverless-appsync-offline-typescript-template.git


serverless-appsync-offline-typescript-template

serverless CircleCI

img

A Serverless Framework template that allows you to launch an AppSync emulator locally and proceed with development. Lambda Function build by TypeScript/Webpack.

Template features:

Usage

serverless create by this template

  1. $ serverless create --template-url https://github.com/daisuke-awaji/serverless-appsync-offline-typescript-template --path myService

Install

  1. $ yarn install

Setup

To run serverless offline, you need DynamoDB local.
Install dynamodb local .jar files

  1. $ sls dynamodb install

Development

  1. $ sls offline start

Test

Locally launch the AppSync emulator and run a test to send a GraphQL request. When the test is complete, the emulator will stop automatically.

  1. $ yarn ci