/random-names

Simple service serving sepuluh sebutan.

Primary LanguageTypeScript

Random Names

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

Tech

  • Typescript
  • AWS:
    • Lambda
    • API Gateway API to call the Lambda.
    • S3 bucket containing the Lambda.
  • Chance

Prerequisites

Getting Started

  1. Clone or download the repo into a fresh folder on your machine.
  2. Run npm install from the project root to install dependencies.

Deploying

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.

Troubleshooting

  • "Command not found" and/or "Permission denied" when running deploy script — You may have to run chmod +x deploy.sh to add execute permission.