Skip to content

01 Setup SST

JP Barbosa edited this page Sep 24, 2022 · 11 revisions

Setup Serverless Stack (SST)

Create a new SST project

npx create-sst@latest --template=minimal/typescript-starter sst-rekognition
cd sst-rekognition
npm install

Install additional packages

npm install uuid
npm install --save-dev @types/uuid

Project structure

  • frontend (React app)
    • public
    • src
  • services
    • functions (Lambda functions)
  • stacks (SST stack)
    • resources
    • MyStack.ts
    • index.ts
  • types

Open Visual Studio Code

code .

Ensure Prettier double quotes

code ./.prettierrc.json
{
  "singleQuote": false
}

Ensure AWS target region

code ./sst.json
{
  "name": "sst-rekognition",
  "region": "us-east-1",
  "main": "stacks/index.ts"
}

Commit

git init
git add .
git commit -m "Setup Serverless Stack (SST)"

Next step

Bucket, Queue, and Event Bus