MCPcopy Index your code
hub / github.com/aws-samples/serverless-coffee

github.com/aws-samples/serverless-coffee @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
42 symbols 85 edges 48 files 0 documented · 0% updated 20d ago★ 2455 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Serverlesspresso - A serverless coffee ordering workload.

This repo provides the code for a serverless coffee bar exhibit, first seen at AWS re:Invent 2021. This consists of three frontend applications (not included) and various backend microservices. This README explains the process to completely install all the various components.

.
├── README.MD           <-- This instructions file
├── backends            <-- Source code for the applicaiotn microservices and resources
├── 001-appCore         <-- Source code template for backend resources
├── 00-baseCore         <-- Source code for application Core (event bus and config tables)

To see the Serverlesspresso workshop, visit: https://workshop.serverlesscoffee.com/. In this workshop, you will deploy a serverless backend that supports a pop-up coffee shop. You will then test your application using 3 front-end applications that are provided.

Installing the backend

For all of the deployments, use us-east-1 for Region when prompted.

1. Installing the core stack

This create a custom event bus, custom SMS auth flow for Cognito signin, and other foundational resources used by other services.

  1. From the command line, install the realtime messaging stack:
cd /00-baseCore
sam build
sam deploy --guided

During the prompts, enter serverlesspresso-core for the Stack Name, core for Service, and accept the defaults for the remaining questions.

  1. After installation, note the outputs section, which provides the UserPoolID, bus name and ARN, IoT endpoint, and user pool client name. These outputs are also stored in AWS Systems Manager Parameter Store for the subsequent SAM stacks to use.

2. Install microservices

cd /01-appCore
sam build
sam deploy --guided

During the prompts, enter serverlesspresso for the Stack Name.

Cleaning up

  1. Navigate to the AWS CloudFormation console.
  2. Delete each stack that starts with serverlesspresso.

Next steps

If you have any questions, please contact the author or raise an issue in the GitHub repo.

Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the AWS Pricing page for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.

==============================================

Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: MIT-0

Core symbols most depended-on inside this repo

sendResponse
called by 4
01-appCore/initDB/app.js
initMenu
called by 3
01-appCore/initDB/initMenu.js
sendResponse
called by 2
00-baseCore/GetIoTEndpoint.js
getItem
called by 2
backends/9-validator/code/ddb.js
main
called by 1
01-appCore/initDB/testHarness.js
sendSMSviaSNS
called by 1
00-baseCore/cognito-triggers/create-auth-challenge.js
main
called by 1
backends/2-config-service/code/localTest.js
iotPublish
called by 1
backends/6-publisher-service/code/publishToIOT.js

Shape

Function 39
Class 2
Method 1

Languages

TypeScript100%

Modules by API surface

backends/9-validator/code/ddb.js4 symbols
backends/8-order-journey/functions/GenerateHtml/app.js4 symbols
extensions/WaitTimes/lib/wait_times_stack.ts3 symbols
extensions/WaitTimes/lambda/average/index.js3 symbols
backends/8-order-journey/functions/GenerateHtml/script.js3 symbols
backends/scripts/stopRunningExecutions.js2 symbols
backends/5-order-manager/robot/put.js2 symbols
extensions/PersistOrderMetricsToDynamoDB/publishMetric/function/harness.js1 symbols
backends/9-validator/code/localTest.js1 symbols
backends/9-validator/code/getCode.js1 symbols
backends/8-order-journey/functions/GenerateHtml/testharness.js1 symbols
backends/7-metrics-service/code/localTest.js1 symbols

For agents

$ claude mcp add serverless-coffee \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact