The Product Service is a simple web service built using Rust and the Warp web framework. It is responsible for serving the product catalog, which includes a list of products that can be fetched via a RESTful API.
- Rust (latest stable version)
- Cargo
-
Update your package list:
sudo apt update
-
Install the build-essential package, which includes gcc and other essential build tools
sudo apt install build-essential
-
Install Rust
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh
-
Add the Rust toolchain directory to the PATH environment variable,
source "$HOME/.cargo/env"
-
Navigate to the
product-service
directory:cd product-service
-
Install dependencies:
cargo run
The service will be running on http://localhost:3030.
- Install the REST Client extension in VS Code to use .http files.
- Use the provided test-product-service.http file to test the service.