This week I have been exploring the world of WordPress development and I felt it would be a great opportunity to get back into some blogging. In this blog, I will document everything you need in order to get up and running with a WordPress dev-environment.
What is WordPress?
WordPress is an open-source content management system (CMS), it is written in PHP, MySQL, and/or MariaDB. WordPress is typically used for blogging, e-commerce, business, and portfolio websites. It allows users to easily manage the content of their website independently without needing a background in tech. This means developers can build a beautiful site for a client, then once built hand the reins over so the user can maintain their website independently.
WordPress as a huge number of plugins, themes, and options however its real power is unlocked when diving into PHP!
How to get started
- Download and install Local by Flywheel (This will allow you to initialize a WordPress project and run a development environment from a GUI)
- Download VScode or another IDE of your choice (If you don't have one already)
- Open Local from your applications folder and you’ll be greeted by a getting started window, read this if you wish, and close it, the following window will appear.
Enter your desired site name and click on continue…
4. Select the preferred environment and once again click continue.
5. Enter a username, email address, and password of your choice and proceed by clicking add site.
At this stage, Local will add all the relevant files for your WordPress site and display the following window.
At this point, you can now visit your default WordPress template by clicking on the view site button. To stop the development environment from running you simply click the stop button at the top of the panel, it's that simple!
So you may be asking, where are the files living on your computer? You can find the directory by right-clicking on your site's name in the local sites Colum and selection show in finder/show destination (PC). It is from here we can open up the files from our IDE.
This blog will be updated with part 2 to follow shortly…