Giter Site home page Giter Site logo

graphql-serverless's Introduction

Graphql serverless

The main goal of this app is to set up a server architecture that enables quick iteration and fast development cycle. For this, we have decided to adopt latest modern technologies and architecture

Technology

  1. Nodejs
  2. AWS Lambda
  3. Serverless
  4. Webpack
  5. Graphql

Currently, the server exposes three endpoint that allows users query graphql. Although only one of this endpoint is required for actual production work, the other two gives you nice, intuitive visual editors that allow you test out the qraphql functions.

  1. <gateway-url>/production/graphql this is the actual production URL for graphql,
  2. http://localhost:4000/playground this uses graphql-playground
  3. http://localhost:4000/graphqli this exposes graphqli console for manual testing

NB The graphql query ui would eventually be scrapped as both perform almost the same function

Serverless is currently used for running/deploying the app to aws lambda. you will also need docker installed on your system to test this locally.

Local Development

To run and test the app locally you need to:

  1. clone repository
  2. setup aws serverless locally using your aws credentials to do this you have to add this variable to your environment ``` export AWS_ACCESS_KEY_ID= export AWS_SECRET_ACCESS_KEY=

You can visit the serverless doc here to configure multiple aws profiles if you already have one setup. note, it's not advisable to use your root credentials make sure to create I am user for this service. The serverless docs cover this extensive 3. run npm install 4. run npm start

To deploy to aws

  1. run npm deploy

graphql-serverless's People

Contributors

enahomurphy avatar

Watchers

 avatar

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.