grvpanchal / apollo-sls-gql

A Simple Starter for Serverless GraphQL with Apollo Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

serverless start

Serverless GraphQL NodeJS Starter GitHub

This is a basic boilerplate to kickstart 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

Install all its dependancies:

$ yarn install

Then you should be able to invoke the Lambda locally:

$ yarn offline

Go to http://localhost:3000/dev/graphql to access the GraphQL Playground.

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.

Contributing

Contributions are most welcome!!

About

A Simple Starter for Serverless GraphQL with Apollo Service

License:MIT License


Languages

Language:JavaScript 100.0%