https://github.com/http4k/dictionary
External service to be used as part of "Writing Test-Driven Apps with http4k" workshop
https://github.com/http4k/dictionary
Last synced: 10 months ago
JSON representation
External service to be used as part of "Writing Test-Driven Apps with http4k" workshop
- Host: GitHub
- URL: https://github.com/http4k/dictionary
- Owner: http4k
- Created: 2024-10-14T08:48:25.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-14T08:50:26.000Z (over 1 year ago)
- Last Synced: 2025-06-09T20:32:12.039Z (10 months ago)
- Language: Kotlin
- Size: 107 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dictionary app
Deployable Dictionary app to be used as part of [Writing Test-Driven Apps with http4k](/http4k/Writing_Test_Driven_Apps_with_http4k) workshop.
Currently available via https://d2abkoa8ls379e.cloudfront.net
# Building and deploying
## Pre-requisites
* Working AWS account
* Pulumi [installed](https://www.pulumi.com/docs/get-started/install/)
* A [user](https://aws.amazon.com/iam/) with permissions to manage resources
* User credentials configured in a `http4k-lambda-demo` [CLI profile](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html):
*~/.aws/config*:
```
[profile dictionary-http4k]
region = eu-west-2
output = json
```
*~/.aws/credentials*:
```
[dictionary-http4k]
aws_access_key_id =
aws_secret_access_key =
```
## Deployment
```bash
export AWS_PROFILE=dictionary-http4k
./gradlew dictionary-function:buildLambdaZip
pulumi up --stack dev
```
The deployed URL will be printed at the end of the run. You can test the deployed lambda with:
```bash
curl $(pulumi stack --stack dev output publishedUrl)
```
## Cleaning up
```bash
pulumi destroy --stack dev
```