As demonstrated in my "Self-Hosting from Scratch" YouTube video.
See commit history to follow the steps laid out in the video.