Skip to content

A Serverless GraphQL NodeJS starter kit to build APIs on AWS Lambda . 🤠🤯

License

Notifications You must be signed in to change notification settings

pimp-my-book/serverless-graphql-nodejs-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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