Make sure it works offline before uploading
How to Create a WordPress Staging Site on Your Computer (2020) – New Version Available
One of the best ways to test a new website you’re developing is to install a WordPress test site on your computer. Test it locally, make sure everything looks and works fine, and then upload it to the live site in one go.
When it comes to WordPress, there are several things to consider when running it locally. You’ll need a working WordPress installation, an available SQL database, and a local web server to run it all on.
You can install all three of these options on your local computer without too much hassle using the process described below.