- Install Amplify CLI tool
npx create-react-app matatau --template typescript
mv README.md CRA_README.md; touch README.md
- In CRA_README.md
:%s/yarn/npm
amplify init
- ? Enter a name for the project:
matatau
- ? Enter a name for the environment:
dev
- ? Choose your default editor: Visual Studio Code
- ? Choose the type of app that you're building:
javascript
- ? What JavaScript framework are you using:
react
- ? Source Directory Path:
src
- ? Distribution Directory Path:
build
- ? Build Command:
npm run-script build
- ? Start Command:
npm run-script start
- ? Enter a name for the project:
amplify add api
(with API Gateway and DynamoDB)- ? Please select from one of the below mentioned services:
REST
- ? Provide a friendly name for your resource to be used as a label for this category in the project:
matatauapi
- ? Provide a path (e.g., /book/{isbn}):
/assessments
- ? Choose a Lambda source: Create a new Lambda function
- ? Provide an AWS Lambda function name:
getAssessments
- ? Choose the runtime that you want to use: NodeJS
- ? Choose the function template that you want to use: CRUD function for DynamoDB (Integration with API Gateway)
- ? Choose a DynamoDB data source option: Create a new DynamoDB table
- ? Please provide a friendly name for your resource that will be used to label this category in the project:
matataudb
- ? Please provide table name:
matatautable
- ? What would you like to name this column:
PK
- ? Please choose the data type:
string
- ? Would you like to add another column? No
- ? Please choose partition key for the table:
PK
- ? Do you want to add a sort key to your table? Yes
- ? Do you want to add global secondary indexes to your table? No
- ? Do you want to add a Lambda Trigger for your Table? No
- ? Do you want to configure advanced settings? No
- ? Do you want to edit the local lambda function now? No
- ? Restrict API access: Yes
- ? Who should have access? Authenticated users only
- ? What kind of access do you want for Authenticated users?
create
,read
,update
- ? Do you want to add another path? No
- ? Please select from one of the below mentioned services:
amplify add hosting
(with auto deployments)- ? Select the plugin module to execute: Hosting with Amplify Console (Managed hosting with custom domains, Continuous deployment)
- ? Choose a type: Continuous deployment (Git-based deployments)
Current iteration of the UI design can be viewed using this link :)