Coder Social home page Coder Social logo

iblis-appsync's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.