This repo uses the AWS CDK to build a Simple Web Service Pattern in serverless using AWS AppSync and DynamoDB.
This project uses TypeScript development with CDK.
The cdk.json
file tells the CDK Toolkit how to execute your app.
input SongInput {
name: String!
artist: String!
}
Type Mutation{
addSong(input: SongInput!): Song
}
type Song {
id: String!
name: String!
artist: String!
}
type Query {
getSongs: [Song!]
}
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpm run deploy
deploy this stack to developmentnpm run diff
compare deployed stack with current statenpm run synth
emits the synthesized CloudFormation template