Skip to content

mmajkafmp/aws-lambda-apollo-api

 
 

Repository files navigation

AWS Lambda Apollo API

Running GraphQL playground in AWS Lambda with the help of TypeScript and Serverless.

Setup

  1. Install dependencies and run the boilerplate query:
npm install
npm start
  1. You can now edit the .graphql-data.json file to adjust the query or mutation.

  2. When ready just re-run the npm start command to test out the Lambda function locally.

AWS Deployment

  1. Run deployment to AWS:
npm run deploy
  1. Navigate to the GraphQL Playground available at https://RANDOM-ID.execute-api.eu-west-1.amazonaws.com/dev/graphql.

  2. Run clean up the AWS application stack run:

npm run remove

Development

You can run npm run invoke-watch to have the Serverless framwork monitor for file changes and re-run the mock Lambda environment.

Thanks to the help of this article and repository you can debug the function in VS Code:

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%