Skip to content

GulsahAvsar/new-product-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product Service

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.

Requirements

  • Rust (latest stable version)
  • Cargo

Setup Instructions

  1. Update your package list:

    sudo apt update
  2. Install the build-essential package, which includes gcc and other essential build tools

    sudo apt install build-essential
  3. Install Rust

    curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh
  4. Add the Rust toolchain directory to the PATH environment variable,

    source "$HOME/.cargo/env"
  5. Navigate to the product-service directory:

    cd product-service
  6. Install dependencies:

    cargo run

The service will be running on http://localhost:3030.

Testing

  1. Install the REST Client extension in VS Code to use .http files.
  2. Use the provided test-product-service.http file to test the service.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages