https://github.com/daisuke-awaji/serverless-appsync-offline-typescript-template
⚡️ serverless appsync offline template ⚡️
https://github.com/daisuke-awaji/serverless-appsync-offline-typescript-template
appsync-emulator circleci dynamodb-local serverless-offline typescript
Last synced: 2 months ago
JSON representation
⚡️ serverless appsync offline template ⚡️
- Host: GitHub
- URL: https://github.com/daisuke-awaji/serverless-appsync-offline-typescript-template
- Owner: daisuke-awaji
- Created: 2020-08-14T13:23:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-16T10:27:21.000Z (almost 4 years ago)
- Last Synced: 2025-04-09T11:48:57.681Z (8 months ago)
- Topics: appsync-emulator, circleci, dynamodb-local, serverless-offline, typescript
- Language: TypeScript
- Homepage: https://qiita.com/G-awa/items/095faa9a94da09bc3ed5
- Size: 205 KB
- Stars: 14
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-appsync-offline-typescript-template
[](http://www.serverless.com) [](https://app.circleci.com/pipelines/github/daisuke-awaji/serverless-appsync-offline-typescript-template)

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:
- [AppSync Simulator](https://github.com/bboure/serverless-appsync-simulator) built with [serverless-appsync-plugin](https://github.com/sid88in/serverless-appsync-plugin).
- Lambda Function written by TypeScript/Webpack.
- Localhosting functions with [Serverless Offline](https://github.com/dherault/serverless-offline).
- Unit testing example for VTL templates.
- Integrate testing example for AppSync Graphql Requests.
- CircleCI support.
### Usage
serverless create by this template
```
$ serverless create --template-url https://github.com/daisuke-awaji/serverless-appsync-offline-typescript-template --path myService
```
### Install
```
$ yarn install
```
### Setup
To run serverless offline, you need DynamoDB local.
Install dynamodb local .jar files
```
$ sls dynamodb install
```
### Development
```
$ 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.
```
$ yarn ci
```