How do you set up a local testing server? - Learn web development | MDN
This article explains how to set up a simple local testing server on your machine, and the basics of how to use it.