For example to create /node_modules/serverless-appsync-offline/dynamob/ you should specify -d / or -dbPath / with a forwardslash at the end. For the path, current working directory is /node_modules/serverless-appsync-offline/dynamob. Note that you cannot specify both -dbPath and -inMemory at once. If you do not specify this option, the file will be written to the current directory. dbPath -b The directory where DynamoDB will write its database file. When you stop DynamoDB, none of the data will be saved. inMemory -i DynamoDB will run in memory, instead of using a database file. dynamoDbPort -d Port to access the dynamoDB. Add Appsync Resource definitions to your Serverless configuration, as defined here: Īll CLI options are optional: -port -p Port to provide the graphgl api.
Then in serverless.yml add following entry to the plugins array: serverless-appsync-offline plugins: - serverless-appsync-offline Using the Plugin
NPM SERVERLESS APPSYNC PLUGIN INSTALL
Npm install -save serverless-appsync-offline In other words, if you find a bug or want a new feature, please help us by becoming one of the contributors. This plugin is updated by its users, I just do maintenance and ensure that PRs are relevant to the community.
Start DynamoDB Local with all the parameters supported (e.g port, inMemory, sharedDb).Connect to any DynamoDB or install DynamoDB Local.Emulate Appsync with AppSync Emulator and depends on Serverless-AppSync-Plugin.This is a wrapper for the excellent AppSync Emulator.