Emulator000 / pokeshakespear

PokéShakespear - A Shakespearian Pokémon translator fetcher made in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PokéShakespear by Dario Cancelliere

A simple Pokémon description fetcher with a Shakespear translation using PokéApi V2.

Requirements

You need Docker in order to run this application. Visit https://docs.docker.com/get-docker/ in order to get the right Docker environment.

Building

You can build the application for the Docker enviroment with the command: cargo +stable build --release --target x86_64-unknown-linux-musl --locked

If you want just to run the application in the host machine, please install the Rust enviroment and run the command: cargo +stable run --release

Running the application

Build the application first then you will have to build the Docker container, then, you can run the application through Docker using these commands:

  • docker build --no-cache --tag pokeshakespear .
  • docker run --rm -p 5000:5000 pokeshakespear

Once the application is running, visit the default URI: http://127.0.0.1:5000/ in order to see the default server page. Visit http://127.0.0.1:5000/pokemon/raichu for example in order to see a Pokémon with their description.

Configuration

You can change the configuration of the server and other setting just changing values inside "config/config.toml".

Made with ❤️ in Rust

About

PokéShakespear - A Shakespearian Pokémon translator fetcher made in Rust


Languages

Language:Rust 96.4%Language:Dockerfile 3.6%