A simple service for getting a list of random names in JSON form. By default, ten names are returned; this can be changed by passing the limit
parameter.
Short: https://names.jaipreston.com
- Typescript
- AWS:
- Lambda
- API Gateway API to call the Lambda.
- S3 bucket containing the Lambda.
- Chance
- Amazon CDK installed on your machine.
- AWS Credentials set either globally (by running
aws configure
) or as environment variables.
- Clone or download the repo into a fresh folder on your machine.
- Run
npm install
from the project root to install dependencies.
The lambda function resides in src/random-names.ts
. To deploy, run the deploy script (deploy.sh
). This will compile the typescript inside the src directory to javascript, before performing a CDK deployment.
- "Command not found" and/or "Permission denied" when running deploy script — You may have to run
chmod +x deploy.sh
to add execute permission.