Read the accompanying article.
- Node.js
v12or later - An AWS account
-
If you don't have it installed, install the Booster CLI with NPM:
npm i -g @boostercloud/cli@0.15.1 -
Configure AWS credentials (see Booster's documentation).
-
Install project dependencies:
npm i -
In the project root directory, run the following to deploy:
boost deploy -e production -
Once the deployment is complete, use the URL labeled
address-book-app.graphqlURLin the outputs to execute GraphQL queries or mutations (you can use something like Hoppscotch). -
To destroy all AWS resources that were provisioned, run:
boost nuke -e production
-
Add a new contact:
mutation { AddContact( input: { id: "90125", firstName: "John", lastName: "Doe", address: "22 Acacia Avenue, London, UK", phoneNumber: "634-5789" } ) } -
Change that contact's phone number:
mutation { UpdatePhoneNumber( input: { id: "90125", phoneNumber: "867-5309" } ) } -
Query that contact's current info:
{ ContactReadModel(id: "90125") { id firstName lastName address phoneNumber } }