This is a basic boilerplate to kitstart your Serverless GraphQL projects with AWS Lambda.
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 Innovationscreated. The project was cloned from it.
Note this project uses Yarn.
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.
Contributions are most welcome!!