Skip to content

vdelacou/iblis-appsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBLIS-APPSYNC

Test and develop locally AWS AppSync with DynamoDB using Serveless Framework.

Repository for this medium article: Serverless GraphQL with AWS AppSync and DynamoDB

Please read the article if you have any questions

Why

The purpose is to automatize the deployment of all the resources needed to create the GraphQL API. Also for development it's more convenient to keep track of the change in a git repository. All of this is not possible by using only the AWS AppSync dashboard UI. Also it takes a lot of time to change all the resolvers one by one. Serverless Framework can help us to deploy the DynamoDB and the AWS AppSync server and upload all the resolvers.

Features

  • GraphQL API with one mutation to add an object and one query to see all objects
  • GraphQL API with API_KEY security
  • Automatic deployement and setup of DynamoDB
  • Works totally offline, no need to deploy if you do not want to

Library and Tools

Deploy

Install and follow instructions to setup serverless with AWS

npm install aws-sdk serverless-appsync-plugin serverless-offline serverless-dynamodb-local serverless-appsync-offline --save-dev

serverless deploy

Test locally

npm install aws-sdk serverless-appsync-plugin serverless-offline serverless-dynamodb-local serverless-appsync-offline --save-dev

serverless dynamodb install --localPath ./bin

serverless offline start

Contribute

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Make the necessary changes and ensure that the tests are passing
  3. Send a pull request

Known issues

  • None for the moment

License

Please, refer to LICENSE file