Go to file
2024-05-07 00:10:54 -07:00
public Finialized final implenentation 2024-04-14 21:29:55 -07:00
src Finialized final implenentation 2024-04-14 21:29:55 -07:00
.gitignore Added remaining files. 2024-04-02 14:16:33 -07:00
Cargo.lock Added remaining files. 2024-04-02 14:16:33 -07:00
Cargo.toml Added remaining files. 2024-04-02 14:16:33 -07:00
README.md Added a README.md file 2024-05-07 00:10:54 -07:00

Introduction

This repository contains a small and simple server I made as part of this course on Udemy.

The server is a simple HTTP server that listens on port 3000 and responds with a simple HTML page. The objective of this course was to learn the basics of Rust, so the server is very simple and does not have any advanced features.

How to run

To run the server, you need to have Rust installed. You can install Rust by following the instructions on the official website.

Once you have Rust installed, you can run the server by executing the following command:

cargo run

This will compile the server and start it. You can then access the server by opening a web browser and navigating to http://localhost:3000.

Modifying the server

To change the port the server listens on, you can modify the main.rs file and change the following line:

fn main() {
    /*...*/
    let server = Server::new(String::from("127.0.0.1:3000"));
    /*...*/
}

You can replace 3000 with any other port number you want.