Tutorial Continue: Web applications in Racket provide an example of how to do this at the very beginning (Section 1, “Getting Started”).
In short, enter the following into DrRacket and click Run. (And click on the stop to kill the server). Hope this helps you get started.
(define (start request)
(response/xexpr
'(html
(head (title "My Blog"))
(body (h1 "Under construction")))))
source
share