--- title: Getting Started menu: docs_basics weight: 130 --- # Getting Started Let’s write our first actix web application! ## Hello, world! Start by creating a new binary-based Cargo project and changing into the new directory: ```bash cargo new hello-world cd hello-world ``` Now, add `actix-web` as dependencies of your project by ensuring your `Cargo.toml` contains the following: ```ini [dependencies] actix-web = "{{< actix-version "actix-web" >}}" ``` In order to implement a web server, we first need to create a request handler. A request handler is a function that accepts an `HttpRequest` instance as its only parameter and returns a type that can be converted into `HttpResponse`: Filename: `src/main.rs` {{< include-example example="getting-started" section="setup" >}}