This project shows how to get a simple GraphQL Hello World application running with CDK and SAM Local.
In one terminal, execute the following commands to get the API running.
# use the correct node version
nvm use
# install node modules
npm install
# start the watch process, create sam template, and start the api.
npm run start
In a different terminal, execute this command to make a request to the api.
npm run request-hello
npm run start
calls watch, synth-sam, and start-apinpm run request-hello
an example API request to test the stacknpm run request-goodbye
a second API request to test the stacknpm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpm run synth-sam
synth a SAM template for SAM local to usenpm run start-api
start SAM local api