Skip to content

A Dockerized REST API api that translates pokemon descriptions into Shakespearean words

Notifications You must be signed in to change notification settings

NickBerto84/ShakespeareInPokemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ShakespeareInPokemon

A Dockerized REST API api that translates pokemon descriptions into Shakespearean words

Instructions

  1. Navigate to the solution directory. (e.g. ShakespeareInPokemon)
  2. Build docker image: docker build -f .\ShakespeareInPokemon.API\Dockerfile -t shakespeareInPokemon .
  3. Run docker container: docker run -d -p 8080:80 --name shakespeareInPokemon shakespeareInPokemon
  4. Open browser and connect to http://localhost:8080/api/pokemon/charizard

Remarks

  1. The free Pokemon api has a hard limit of 5 request per hour, which is nowhere near what to expect from a production environment. For the sake of simplicity it is just failing and yielding a 500 error. In a production environment, where there might be a reasonable restriction, there should be some mechanism in place to deal with this in a more controlled fashion, if needed.
  2. Another option to try to reduce the amount of calls to the Pokemon api might be implemening chaching. There are, of course, other benefits for the Poketranslator api as well.

About

A Dockerized REST API api that translates pokemon descriptions into Shakespearean words

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published