How to install on localhost

Do you want a production website for other people to use or something locally on your machine for you to test and develop code?