├── .github ├── disabled_workflows │ ├── ch2-pipeline.yml │ ├── ch3-pipeline.yml │ ├── ch4-pipeline.yml │ ├── ch5-pipeline.yml │ ├── ch6-pipeline.yml │ ├── ch7-pipeline.yml │ ├── ch8-pipeline.yml │ ├── ch9-pipeline.yml │ ├── javascript.yml │ └── kotlin.yml └── workflows │ └── python.yml ├── .gitignore ├── .golangci.yml ├── ARCHITECTURE.md ├── CONTRIBUTE.md ├── README.md ├── ch10 ├── .golangci.yml ├── Dockerfile ├── Makefile ├── app.yaml ├── cluster.sh ├── cmd │ ├── features │ │ └── api.feature │ ├── main.go │ └── main_test.go ├── config.json ├── config │ └── core.go ├── data │ └── dump.rdb ├── docker-compose.yml ├── faas.go ├── go.mod ├── go.sum ├── handlers │ ├── health.go │ └── rest │ │ ├── translate.go │ │ └── translate_test.go ├── k8s │ ├── config.yml │ ├── deployment.yml │ └── service.yml └── translation │ ├── client.go │ ├── client_test.go │ ├── database.go │ ├── remote_translator.go │ ├── remote_translator_test.go │ ├── translations.json │ ├── translator.go │ └── translator_test.go ├── ch2 ├── Makefile ├── cmd │ └── main.go └── go.mod ├── ch3 ├── Makefile ├── cmd │ └── main.go ├── go.mod ├── handlers │ └── rest │ │ ├── translate.go │ │ └── translate_test.go └── translation │ ├── translator.go │ └── translator_test.go ├── ch4 ├── Makefile ├── app.yaml ├── cmd │ └── main.go ├── faas.go ├── go.mod ├── handlers │ ├── health.go │ └── rest │ │ ├── translate.go │ │ └── translate_test.go └── translation │ ├── translator.go │ └── translator_test.go ├── ch5 ├── .golangci.yml ├── Makefile ├── app.yaml ├── cmd │ └── main.go ├── faas.go ├── go.mod ├── handlers │ ├── health.go │ └── rest │ │ ├── translate.go │ │ └── translate_test.go └── translation │ ├── translator.go │ └── translator_test.go ├── ch6 ├── .golangci.yml ├── Makefile ├── app.yaml ├── cmd │ └── main.go ├── faas.go ├── go.mod ├── go.sum ├── handlers │ ├── health.go │ └── rest │ │ ├── translate.go │ │ └── translate_test.go └── translation │ ├── client.go │ ├── client_test.go │ ├── remote_translator.go │ ├── remote_translator_test.go │ ├── translator.go │ └── translator_test.go ├── ch7 ├── .golangci.yml ├── Dockerfile ├── Makefile ├── app.yaml ├── cmd │ └── main.go ├── faas.go ├── go.mod ├── go.sum ├── handlers │ ├── health.go │ └── rest │ │ ├── translate.go │ │ └── translate_test.go └── translation │ ├── client.go │ ├── client_test.go │ ├── remote_translator.go │ ├── remote_translator_test.go │ ├── translator.go │ └── translator_test.go ├── ch8 ├── .golangci.yml ├── Dockerfile ├── Makefile ├── app.yaml ├── cmd │ └── main.go ├── config.json ├── config │ └── core.go ├── faas.go ├── go.mod ├── go.sum ├── handlers │ ├── health.go │ └── rest │ │ ├── translate.go │ │ └── translate_test.go └── translation │ ├── client.go │ ├── client_test.go │ ├── remote_translator.go │ ├── remote_translator_test.go │ ├── translator.go │ └── translator_test.go ├── ch9 ├── .golangci.yml ├── Dockerfile ├── Makefile ├── app.yaml ├── cmd │ ├── features │ │ └── api.feature │ ├── main.go │ └── main_test.go ├── config.json ├── config │ └── core.go ├── data │ └── dump.rdb ├── docker-compose.yml ├── faas.go ├── go.mod ├── go.sum ├── handlers │ ├── health.go │ └── rest │ │ ├── translate.go │ │ └── translate_test.go └── translation │ ├── client.go │ ├── client_test.go │ ├── database.go │ ├── remote_translator.go │ ├── remote_translator_test.go │ ├── translator.go │ └── translator_test.go ├── get_helm.sh ├── javascript ├── .dockerignore ├── .eslintrc.json ├── .gitignore ├── Dockerfile ├── app.js ├── app.test.js ├── bin │ └── www ├── data │ └── dump.rdb ├── jest.config.js ├── package-lock.json ├── package.json ├── repository │ └── translation.js └── routes │ └── translation.js ├── kotlin ├── .dockerignore ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── .gitignore │ │ ├── MavenWrapperDownloader.java │ │ └── maven-wrapper.properties ├── Makefile ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── docker │ │ ├── Dockerfile.jvm │ │ ├── Dockerfile.legacy-jar │ │ ├── Dockerfile.native │ │ └── Dockerfile.native-micro │ ├── kotlin │ │ └── dev │ │ │ └── joeldholmes │ │ │ └── translate │ │ │ ├── ITranslationService.kt │ │ │ ├── RedisTranslationService.kt │ │ │ ├── Translation.kt │ │ │ └── TranslationResource.kt │ └── resources │ │ └── application.properties │ └── test │ ├── kotlin │ └── dev │ │ └── joelholmes │ │ └── translate │ │ ├── RedisTestContainer.kt │ │ ├── TranslationIT.kt │ │ └── TranslationTest.kt │ └── resources │ ├── application.properties │ └── data │ └── dump.rdb └── python ├── .flake8 ├── .gitignore ├── Dockerfile ├── NOTES.md ├── README.rst ├── dist ├── hello-api-0.1.0.tar.gz └── hello_api-0.1.0-py3-none-any.whl ├── hello_api ├── __init__.py ├── app.py ├── deps.py ├── redis.py └── repo.py ├── noxfile.py ├── poetry.lock ├── pyproject.toml └── tests ├── __init__.py └── test_hello_api.py /.github/disabled_workflows/ch2-pipeline.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/disabled_workflows/ch2-pipeline.yml -------------------------------------------------------------------------------- /.github/disabled_workflows/ch3-pipeline.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/disabled_workflows/ch3-pipeline.yml -------------------------------------------------------------------------------- /.github/disabled_workflows/ch4-pipeline.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/disabled_workflows/ch4-pipeline.yml -------------------------------------------------------------------------------- /.github/disabled_workflows/ch5-pipeline.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/disabled_workflows/ch5-pipeline.yml -------------------------------------------------------------------------------- /.github/disabled_workflows/ch6-pipeline.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/disabled_workflows/ch6-pipeline.yml -------------------------------------------------------------------------------- /.github/disabled_workflows/ch7-pipeline.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/disabled_workflows/ch7-pipeline.yml -------------------------------------------------------------------------------- /.github/disabled_workflows/ch8-pipeline.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/disabled_workflows/ch8-pipeline.yml -------------------------------------------------------------------------------- /.github/disabled_workflows/ch9-pipeline.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/disabled_workflows/ch9-pipeline.yml -------------------------------------------------------------------------------- /.github/disabled_workflows/javascript.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/disabled_workflows/javascript.yml -------------------------------------------------------------------------------- /.github/disabled_workflows/kotlin.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/disabled_workflows/kotlin.yml -------------------------------------------------------------------------------- /.github/workflows/python.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.github/workflows/python.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/.golangci.yml -------------------------------------------------------------------------------- /ARCHITECTURE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ARCHITECTURE.md -------------------------------------------------------------------------------- /CONTRIBUTE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/CONTRIBUTE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/README.md -------------------------------------------------------------------------------- /ch10/.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/.golangci.yml -------------------------------------------------------------------------------- /ch10/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/Dockerfile -------------------------------------------------------------------------------- /ch10/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/Makefile -------------------------------------------------------------------------------- /ch10/app.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/app.yaml -------------------------------------------------------------------------------- /ch10/cluster.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/cluster.sh -------------------------------------------------------------------------------- /ch10/cmd/features/api.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/cmd/features/api.feature -------------------------------------------------------------------------------- /ch10/cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/cmd/main.go -------------------------------------------------------------------------------- /ch10/cmd/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/cmd/main_test.go -------------------------------------------------------------------------------- /ch10/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "port": ":8079" 3 | } -------------------------------------------------------------------------------- /ch10/config/core.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/config/core.go -------------------------------------------------------------------------------- /ch10/data/dump.rdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/data/dump.rdb -------------------------------------------------------------------------------- /ch10/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/docker-compose.yml -------------------------------------------------------------------------------- /ch10/faas.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/faas.go -------------------------------------------------------------------------------- /ch10/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/go.mod -------------------------------------------------------------------------------- /ch10/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/go.sum -------------------------------------------------------------------------------- /ch10/handlers/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/handlers/health.go -------------------------------------------------------------------------------- /ch10/handlers/rest/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/handlers/rest/translate.go -------------------------------------------------------------------------------- /ch10/handlers/rest/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/handlers/rest/translate_test.go -------------------------------------------------------------------------------- /ch10/k8s/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/k8s/config.yml -------------------------------------------------------------------------------- /ch10/k8s/deployment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/k8s/deployment.yml -------------------------------------------------------------------------------- /ch10/k8s/service.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/k8s/service.yml -------------------------------------------------------------------------------- /ch10/translation/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/translation/client.go -------------------------------------------------------------------------------- /ch10/translation/client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/translation/client_test.go -------------------------------------------------------------------------------- /ch10/translation/database.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/translation/database.go -------------------------------------------------------------------------------- /ch10/translation/remote_translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/translation/remote_translator.go -------------------------------------------------------------------------------- /ch10/translation/remote_translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/translation/remote_translator_test.go -------------------------------------------------------------------------------- /ch10/translation/translations.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/translation/translations.json -------------------------------------------------------------------------------- /ch10/translation/translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/translation/translator.go -------------------------------------------------------------------------------- /ch10/translation/translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch10/translation/translator_test.go -------------------------------------------------------------------------------- /ch2/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch2/Makefile -------------------------------------------------------------------------------- /ch2/cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch2/cmd/main.go -------------------------------------------------------------------------------- /ch2/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/holmes89/hello-api 2 | 3 | go 1.17 4 | -------------------------------------------------------------------------------- /ch3/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch3/Makefile -------------------------------------------------------------------------------- /ch3/cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch3/cmd/main.go -------------------------------------------------------------------------------- /ch3/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/holmes89/hello-api 2 | 3 | go 1.17 4 | -------------------------------------------------------------------------------- /ch3/handlers/rest/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch3/handlers/rest/translate.go -------------------------------------------------------------------------------- /ch3/handlers/rest/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch3/handlers/rest/translate_test.go -------------------------------------------------------------------------------- /ch3/translation/translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch3/translation/translator.go -------------------------------------------------------------------------------- /ch3/translation/translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch3/translation/translator_test.go -------------------------------------------------------------------------------- /ch4/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch4/Makefile -------------------------------------------------------------------------------- /ch4/app.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch4/app.yaml -------------------------------------------------------------------------------- /ch4/cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch4/cmd/main.go -------------------------------------------------------------------------------- /ch4/faas.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch4/faas.go -------------------------------------------------------------------------------- /ch4/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/holmes89/hello-api 2 | 3 | go 1.15 4 | -------------------------------------------------------------------------------- /ch4/handlers/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch4/handlers/health.go -------------------------------------------------------------------------------- /ch4/handlers/rest/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch4/handlers/rest/translate.go -------------------------------------------------------------------------------- /ch4/handlers/rest/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch4/handlers/rest/translate_test.go -------------------------------------------------------------------------------- /ch4/translation/translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch4/translation/translator.go -------------------------------------------------------------------------------- /ch4/translation/translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch4/translation/translator_test.go -------------------------------------------------------------------------------- /ch5/.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch5/.golangci.yml -------------------------------------------------------------------------------- /ch5/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch5/Makefile -------------------------------------------------------------------------------- /ch5/app.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch5/app.yaml -------------------------------------------------------------------------------- /ch5/cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch5/cmd/main.go -------------------------------------------------------------------------------- /ch5/faas.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch5/faas.go -------------------------------------------------------------------------------- /ch5/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/holmes89/hello-api 2 | 3 | go 1.15 4 | -------------------------------------------------------------------------------- /ch5/handlers/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch5/handlers/health.go -------------------------------------------------------------------------------- /ch5/handlers/rest/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch5/handlers/rest/translate.go -------------------------------------------------------------------------------- /ch5/handlers/rest/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch5/handlers/rest/translate_test.go -------------------------------------------------------------------------------- /ch5/translation/translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch5/translation/translator.go -------------------------------------------------------------------------------- /ch5/translation/translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch5/translation/translator_test.go -------------------------------------------------------------------------------- /ch6/.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/.golangci.yml -------------------------------------------------------------------------------- /ch6/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/Makefile -------------------------------------------------------------------------------- /ch6/app.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/app.yaml -------------------------------------------------------------------------------- /ch6/cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/cmd/main.go -------------------------------------------------------------------------------- /ch6/faas.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/faas.go -------------------------------------------------------------------------------- /ch6/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/go.mod -------------------------------------------------------------------------------- /ch6/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/go.sum -------------------------------------------------------------------------------- /ch6/handlers/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/handlers/health.go -------------------------------------------------------------------------------- /ch6/handlers/rest/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/handlers/rest/translate.go -------------------------------------------------------------------------------- /ch6/handlers/rest/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/handlers/rest/translate_test.go -------------------------------------------------------------------------------- /ch6/translation/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/translation/client.go -------------------------------------------------------------------------------- /ch6/translation/client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/translation/client_test.go -------------------------------------------------------------------------------- /ch6/translation/remote_translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/translation/remote_translator.go -------------------------------------------------------------------------------- /ch6/translation/remote_translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/translation/remote_translator_test.go -------------------------------------------------------------------------------- /ch6/translation/translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/translation/translator.go -------------------------------------------------------------------------------- /ch6/translation/translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch6/translation/translator_test.go -------------------------------------------------------------------------------- /ch7/.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/.golangci.yml -------------------------------------------------------------------------------- /ch7/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/Dockerfile -------------------------------------------------------------------------------- /ch7/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/Makefile -------------------------------------------------------------------------------- /ch7/app.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/app.yaml -------------------------------------------------------------------------------- /ch7/cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/cmd/main.go -------------------------------------------------------------------------------- /ch7/faas.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/faas.go -------------------------------------------------------------------------------- /ch7/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/go.mod -------------------------------------------------------------------------------- /ch7/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/go.sum -------------------------------------------------------------------------------- /ch7/handlers/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/handlers/health.go -------------------------------------------------------------------------------- /ch7/handlers/rest/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/handlers/rest/translate.go -------------------------------------------------------------------------------- /ch7/handlers/rest/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/handlers/rest/translate_test.go -------------------------------------------------------------------------------- /ch7/translation/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/translation/client.go -------------------------------------------------------------------------------- /ch7/translation/client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/translation/client_test.go -------------------------------------------------------------------------------- /ch7/translation/remote_translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/translation/remote_translator.go -------------------------------------------------------------------------------- /ch7/translation/remote_translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/translation/remote_translator_test.go -------------------------------------------------------------------------------- /ch7/translation/translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/translation/translator.go -------------------------------------------------------------------------------- /ch7/translation/translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch7/translation/translator_test.go -------------------------------------------------------------------------------- /ch8/.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/.golangci.yml -------------------------------------------------------------------------------- /ch8/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/Dockerfile -------------------------------------------------------------------------------- /ch8/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/Makefile -------------------------------------------------------------------------------- /ch8/app.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/app.yaml -------------------------------------------------------------------------------- /ch8/cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/cmd/main.go -------------------------------------------------------------------------------- /ch8/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "port": ":8079" 3 | } -------------------------------------------------------------------------------- /ch8/config/core.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/config/core.go -------------------------------------------------------------------------------- /ch8/faas.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/faas.go -------------------------------------------------------------------------------- /ch8/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/go.mod -------------------------------------------------------------------------------- /ch8/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/go.sum -------------------------------------------------------------------------------- /ch8/handlers/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/handlers/health.go -------------------------------------------------------------------------------- /ch8/handlers/rest/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/handlers/rest/translate.go -------------------------------------------------------------------------------- /ch8/handlers/rest/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/handlers/rest/translate_test.go -------------------------------------------------------------------------------- /ch8/translation/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/translation/client.go -------------------------------------------------------------------------------- /ch8/translation/client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/translation/client_test.go -------------------------------------------------------------------------------- /ch8/translation/remote_translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/translation/remote_translator.go -------------------------------------------------------------------------------- /ch8/translation/remote_translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/translation/remote_translator_test.go -------------------------------------------------------------------------------- /ch8/translation/translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/translation/translator.go -------------------------------------------------------------------------------- /ch8/translation/translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch8/translation/translator_test.go -------------------------------------------------------------------------------- /ch9/.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/.golangci.yml -------------------------------------------------------------------------------- /ch9/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/Dockerfile -------------------------------------------------------------------------------- /ch9/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/Makefile -------------------------------------------------------------------------------- /ch9/app.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/app.yaml -------------------------------------------------------------------------------- /ch9/cmd/features/api.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/cmd/features/api.feature -------------------------------------------------------------------------------- /ch9/cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/cmd/main.go -------------------------------------------------------------------------------- /ch9/cmd/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/cmd/main_test.go -------------------------------------------------------------------------------- /ch9/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "port": ":8079" 3 | } -------------------------------------------------------------------------------- /ch9/config/core.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/config/core.go -------------------------------------------------------------------------------- /ch9/data/dump.rdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/data/dump.rdb -------------------------------------------------------------------------------- /ch9/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/docker-compose.yml -------------------------------------------------------------------------------- /ch9/faas.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/faas.go -------------------------------------------------------------------------------- /ch9/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/go.mod -------------------------------------------------------------------------------- /ch9/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/go.sum -------------------------------------------------------------------------------- /ch9/handlers/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/handlers/health.go -------------------------------------------------------------------------------- /ch9/handlers/rest/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/handlers/rest/translate.go -------------------------------------------------------------------------------- /ch9/handlers/rest/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/handlers/rest/translate_test.go -------------------------------------------------------------------------------- /ch9/translation/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/translation/client.go -------------------------------------------------------------------------------- /ch9/translation/client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/translation/client_test.go -------------------------------------------------------------------------------- /ch9/translation/database.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/translation/database.go -------------------------------------------------------------------------------- /ch9/translation/remote_translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/translation/remote_translator.go -------------------------------------------------------------------------------- /ch9/translation/remote_translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/translation/remote_translator_test.go -------------------------------------------------------------------------------- /ch9/translation/translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/translation/translator.go -------------------------------------------------------------------------------- /ch9/translation/translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/ch9/translation/translator_test.go -------------------------------------------------------------------------------- /get_helm.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/get_helm.sh -------------------------------------------------------------------------------- /javascript/.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /javascript/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/.eslintrc.json -------------------------------------------------------------------------------- /javascript/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /javascript/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/Dockerfile -------------------------------------------------------------------------------- /javascript/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/app.js -------------------------------------------------------------------------------- /javascript/app.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/app.test.js -------------------------------------------------------------------------------- /javascript/bin/www: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/bin/www -------------------------------------------------------------------------------- /javascript/data/dump.rdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/data/dump.rdb -------------------------------------------------------------------------------- /javascript/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/jest.config.js -------------------------------------------------------------------------------- /javascript/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/package-lock.json -------------------------------------------------------------------------------- /javascript/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/package.json -------------------------------------------------------------------------------- /javascript/repository/translation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/repository/translation.js -------------------------------------------------------------------------------- /javascript/routes/translation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/javascript/routes/translation.js -------------------------------------------------------------------------------- /kotlin/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/.dockerignore -------------------------------------------------------------------------------- /kotlin/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/.gitignore -------------------------------------------------------------------------------- /kotlin/.mvn/wrapper/.gitignore: -------------------------------------------------------------------------------- 1 | maven-wrapper.jar 2 | -------------------------------------------------------------------------------- /kotlin/.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/.mvn/wrapper/MavenWrapperDownloader.java -------------------------------------------------------------------------------- /kotlin/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /kotlin/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/Makefile -------------------------------------------------------------------------------- /kotlin/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/README.md -------------------------------------------------------------------------------- /kotlin/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/mvnw -------------------------------------------------------------------------------- /kotlin/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/mvnw.cmd -------------------------------------------------------------------------------- /kotlin/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/pom.xml -------------------------------------------------------------------------------- /kotlin/src/main/docker/Dockerfile.jvm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/main/docker/Dockerfile.jvm -------------------------------------------------------------------------------- /kotlin/src/main/docker/Dockerfile.legacy-jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/main/docker/Dockerfile.legacy-jar -------------------------------------------------------------------------------- /kotlin/src/main/docker/Dockerfile.native: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/main/docker/Dockerfile.native -------------------------------------------------------------------------------- /kotlin/src/main/docker/Dockerfile.native-micro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/main/docker/Dockerfile.native-micro -------------------------------------------------------------------------------- /kotlin/src/main/kotlin/dev/joeldholmes/translate/ITranslationService.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/main/kotlin/dev/joeldholmes/translate/ITranslationService.kt -------------------------------------------------------------------------------- /kotlin/src/main/kotlin/dev/joeldholmes/translate/RedisTranslationService.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/main/kotlin/dev/joeldholmes/translate/RedisTranslationService.kt -------------------------------------------------------------------------------- /kotlin/src/main/kotlin/dev/joeldholmes/translate/Translation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/main/kotlin/dev/joeldholmes/translate/Translation.kt -------------------------------------------------------------------------------- /kotlin/src/main/kotlin/dev/joeldholmes/translate/TranslationResource.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/main/kotlin/dev/joeldholmes/translate/TranslationResource.kt -------------------------------------------------------------------------------- /kotlin/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/main/resources/application.properties -------------------------------------------------------------------------------- /kotlin/src/test/kotlin/dev/joelholmes/translate/RedisTestContainer.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/test/kotlin/dev/joelholmes/translate/RedisTestContainer.kt -------------------------------------------------------------------------------- /kotlin/src/test/kotlin/dev/joelholmes/translate/TranslationIT.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/test/kotlin/dev/joelholmes/translate/TranslationIT.kt -------------------------------------------------------------------------------- /kotlin/src/test/kotlin/dev/joelholmes/translate/TranslationTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/test/kotlin/dev/joelholmes/translate/TranslationTest.kt -------------------------------------------------------------------------------- /kotlin/src/test/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/test/resources/application.properties -------------------------------------------------------------------------------- /kotlin/src/test/resources/data/dump.rdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/kotlin/src/test/resources/data/dump.rdb -------------------------------------------------------------------------------- /python/.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | select = E123,W456 3 | max-line-length = 88 -------------------------------------------------------------------------------- /python/.gitignore: -------------------------------------------------------------------------------- 1 | venv 2 | __pycache__ 3 | .nox -------------------------------------------------------------------------------- /python/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/Dockerfile -------------------------------------------------------------------------------- /python/NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/NOTES.md -------------------------------------------------------------------------------- /python/README.rst: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/dist/hello-api-0.1.0.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/dist/hello-api-0.1.0.tar.gz -------------------------------------------------------------------------------- /python/dist/hello_api-0.1.0-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/dist/hello_api-0.1.0-py3-none-any.whl -------------------------------------------------------------------------------- /python/hello_api/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "0.1.0" 2 | -------------------------------------------------------------------------------- /python/hello_api/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/hello_api/app.py -------------------------------------------------------------------------------- /python/hello_api/deps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/hello_api/deps.py -------------------------------------------------------------------------------- /python/hello_api/redis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/hello_api/redis.py -------------------------------------------------------------------------------- /python/hello_api/repo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/hello_api/repo.py -------------------------------------------------------------------------------- /python/noxfile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/noxfile.py -------------------------------------------------------------------------------- /python/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/poetry.lock -------------------------------------------------------------------------------- /python/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/pyproject.toml -------------------------------------------------------------------------------- /python/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/tests/test_hello_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holmes89/hello-api/HEAD/python/tests/test_hello_api.py --------------------------------------------------------------------------------