# Lesson 2: Your first HTTP server Your first HTTP server comes up in almost every real Go project. We start with the why, then write code together. Full lesson: [https://glibcode.net/courses/go-apis/lessons/2](https://glibcode.net/courses/go-apis/lessons/2) ## Files - `main.go`: a hello endpoint with net/http ## Run it ```sh go run ./lessons/02-your-first-http-server ``` ## Exercises See [exercises.md](exercises.md). Ask in the forum once you've tried.