
pub struct EcommerceServer {
    addr: SocketAddr
}

impl EcommerceServer {
    pub fn new(addr: String) -> Self {
        let parsed_addr = addr.parse::<SocketAddr>().unwrap();
        EcommerceServer { addr: parsed_addr }
    }

    pub async fn run_server(self) -> Result<(), Box<dyn std::error::Error>> {
        println!("Listening to address: {}\r\n", self.addr);
    