A simple template for Serverless GraphQL projects.
Includes
- Serverless Framework
- serverless-offline
- TypeScript support (through serverless-esbuild)
- GraphQL Helix
yarn install
yarn start
Open http://localhost:3000/graphql in a browser to use the GraphiQL interface. Run GraphQL queries against the same endpoint:
curl --location --request POST 'http://localhost:3000/graphql' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"query {\n hello\n}","variables":{}}'
Configure your AWS credentials and run:
yarn deploy