aaronweissler / aws-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Demo

Very simple web application to translate inputs.
The app exposes 2 endpoints

  • /ping
  • /translate?text=string&src=lang&dest=lang

Setup

Run in project root directory and add virtual env as python sdk to IntelliJ

source setupDev.rc

Build and run Container

docker build -t translator:latest .
docker run -p 8081:8081 translator:latest

Invoke methods

curl  curl http://localhost:8081/ping
curl  curl http://localhost:8081/translate?text=input&src=de&dest=en

About


Languages

Language:Python 73.5%Language:Shell 13.3%Language:Dockerfile 13.2%