Clone the repository:
> git clone https://github.com/Im-Nick/pokedex
- With Cargo
enter the project root folder then:
Build with:
> cargo run
> cargo build # pass --release option for prod build
- With Docker enter the root folder then:
Run docker container
> docker build -t <image_name> .
Run docker container with env file> 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>
> docker run --env-file .env -p 8080:8080 --name <container_name> <image_name>
- Better logging library such as Log4rs/Tracing for sending log data to local files or remote log