Quick note, I love the image for this article. Cheers Pixabay!
I have recently cleaned down my system and started re-installing all my essential software/packages for development. This came about after the laptop doing deathly slow, and nothing working properly (love good old bloat).
I work with both PHP (WordPress) and JS based (React/Gatsby) builds and I always seems to come across issues when re-installing my system. I have (after many mistakes) now got my install process down to a T.
This is a guide for me (and hopefully it can help you) for setting up a new system, quickly. On Windows (sorry Mac kids, wrong blog).
In order of download:
Git (for windows)
I install this with the bare minimum. No GUI ect. I just want the bare bones functionality! I also set it to use Atom as its default. Not sure this helps anything, but it seems right and I have never had issues. This is downloaded first as the “react” plugin I use in Atom requires git to download.
Atom is brilliant. I know this is a personal preference but I am a massive fan. I banged on about it before in my article about My Atom Package and Theme setup and I will bang on again. It is clean, quick, and customisation. It also has Git built in, for those quick push/merges. Anything more serious and you will need to move back to the command terminal though.
I love this little command terminal. It is quick, pretty, and gets the job done. I download it, drop the folder into my “program files” folder and add to the taskbar. Done.
I have spent so many hours trying to fix dodgy MySQL installs. But always find a file needs updating, or an install package crashes at 50% (every god damn time, why does it suck so much!). I got so sick of this, (and that it is closed source) I moved over to MariaDB. Turns out it has a much cleaner install, and it a exact replacement for MySQL. No issues with compatibility. And it is open source!
Just remember to set is as a service (I renamed to “mysql” so it would work with my automatic WordPress installer). Lovely.
Apparently Microsoft doesn’t like to make our lives easy. So PHP is a nightmare to install on Windows without a load of hassle. I don’t like hassle. But we need PHP.
Jeff Geerling has written a pretty decent article on this outlining exactly what is needed, and TBH it isn’t the worst. I’ll let him take the reins for this bit: https://www.jeffgeerling.com/blog/2018/installing-php-7-and-composer-on-windows-10
This beauty makes life so much easier. And we need it for our localhost setup. If you haven’t got your hands on this system, do it.
Valet for Windows
This is an incredible package that makes it easy to spin up local development sites against the .test domain. A simple “valet link projectname” whilst in the project folder mean you can then develop that site on “projectname.test”.
The install is a beauty as well. Open your command line (as administrator) and run:
composer global require cretueusebiu/valet-windows
This adds the package to your system
Then you need to install it:
Once this is finished you are left with configuring your networkg, this is not too bad – just follow the instructions: http://mayakron.altervista.org/wikibase/show.php?id=AcrylicWindows10Configuration
If you have any issues, visit: https://github.com/cretueusebiu/valet-windows
An issue I ran into was the install process was that acrylic wouldn’t connect. This seems to be the solution: https://github.com/cretueusebiu/valet-windows/issues/86)
Nice and simple. Pick the one you need, run that install!
Everyone needs a JS package manager. I just happen to use this one. It seems to have less errors when working with Gatsby, and has a great “link” function for when I develope packages (I made some Gatbsy stuff if you care), that seems cleaner than NPMs version.
Now this all said, I have heard things about Chocolatet but never used it. As I clean down my computer more frequently, moving to a software package manager might be a smart decision. Something I need to look into!
Hopefully the above can help you. I know it will help future Rob. Maybe.