/pokedex

Primary LanguageRust

Pokedex REST API

Install:

Clone the repository:

> git clone https://github.com/Im-Nick/pokedex

Usage:

  • With Cargo enter the project root folder then:
    > cargo run
    Build with:
    > cargo build # pass --release option for prod build
  • With Docker enter the root folder then:
    > docker build -t <image_name> .
    Run docker container
    > docker run -p 8080:8080 --name <container_name> \
    -e APP_HOST=0.0.0.0 \ # Optional default 127.0.0.1
    -e APP_PORT=8080 \ # Optional default 8080
    -e RUST_LOG=info \ # enable logging
    -d \
    <image_name>
    Run docker container with env file
    > docker run --env-file .env -p 8080:8080 --name <container_name> <image_name>

Improvements

  • Better logging library such as Log4rs/Tracing for sending log data to local files or remote log