Giter Site home page Giter Site logo

pimp-my-book / serverless-graphql-nodejs-starter Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 6.0 964 KB

A Serverless GraphQL NodeJS starter kit to build APIs on AWS Lambda . 🀠🀯

License: MIT License

JavaScript 100.00%
nodejs serverless-framework graphql aws-lambda dynamodb cognito sqs apollo-server apollo-graphql-server apollo-graphql

serverless-graphql-nodejs-starter's Introduction

serverless start

Serverless GraphQL NodeJS Starter GitHub

This is a basic boilerplate to kitstart your Serverless GraphQL projects with AWS Lambda. There is also a TypeScript version if you prefer!

It is powered by Apollo-Server-Lambda and uses the Serverless Framework to deploy it to AWS.

This is hugely inspired by the starter that Anomaly Innovations created. The project was cloned from it.

Prerequistes

Note this project uses Yarn.

How to get started

First clone the repo:

$ serverless install --url https://github.com/pimp-my-book/serverless-graphql-nodejs-starter --name project-name

Move into the project folder:

$ cd project-name

Then Install all its dependancies:

$ yarn install

Then you should be able to invoke the Lambda locally:

$ yarn offline

To deploy to AWS run the following command:

$ yarn deploy

This should be a good start to be able to move on and do whatever you gotta do meet business requirements.

How To Link Other AWS Services

There are also Cloudformation templates for DynamoDB,S3,Cognito and SQS.

Contributing

Contributions are most welcome!!

License

MIT

serverless-graphql-nodejs-starter's People

Contributors

amodinho avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

serverless-graphql-nodejs-starter's Issues

AWS - NodeJS v8.x Deprecation

What’s happening?

The Node community has decided to end support for Node.js 8.x on December 31, 2019 [1]. From this date forward, Node.js 8.x will stop receiving bug fixes, security updates, and/or performance improvements. To ensure that your new and existing functions run on a supported and secure runtime, language runtimes that have reached their EOL are deprecated in AWS [2].

For Node.js 8.x, there will be 2 stages to the runtime deprecation process:

  1. Disable Function Create – Beginning January 6, 2020, customers will no longer be able to create functions using Node.js 8.10

  2. Disable Function Update – Beginning February 3, 2020, customers will no longer be able to update functions using Node.js 8.10

After this period, both function creation and updates will be disabled permanently. However, existing Node 8.x functions will still be available to process invocation events.

What do I need to do?

We encourage you to update all of your Node.js 8.10 functions to the newer available runtime version, Node.js 10.x[3]. You should test your functions for compatibility with the Node.js 10.x language version before applying changes to your production functions.

It worked!

(excited because the other 6 I tried didn't.... :(

one change: handler: src/graphql.... => handler: src/Graphql....

Thanks!

Fix ReadMe

The readme needs info on:

  • the purpose of the repo
  • how to use it
  • what you need to get started
  • its license

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.