Recently I had to decommission my Mac and went ahead and bought a PC. And apart from my renewed love to video games I had a problem with my web development. I lost some nice apps in this transition and my glorious console. This post is my try to setting up a windows machine for web development. Sometimes this can become a hassle, even if it is not your first time you often forget dependencies or “that” code to download a specific thing. In this post I will go with the steps and tools I use for setting up a clean machine until you get a neat little package to start working so I don’t forget and neither do you.
This tutorial was tested with Windows 8 and 8.1, so let’s get started!
Some may argue that if you want to start in web development you just need a good text editor. And they are right! That’s why we will first install Sublime text. You can download and install Sublime from the previous link to their website. It is not free but the trial version is kinda like winrar, you can keep using it but be nice and pay for the full version if you can. I also have already made a post with some of the best packages that I use and other tips for getting it set up, you should check it out.
Another great alternative is Notepad++ which I highly recommend in case you want to try something else or have a backup. If you are looking for an IDE I have to recommend WebStorm or Microsoft’s Visual Studio. Both are good options and I recommend you test them and see which one you like.
git is my version control system of choice. A version control system keeps tab of all the changes you make to the files to tell him to. So for example, if you want to see the changes you did to a file a week ago you can do that with ease, and that’s just the tip of the iceberg.
I use git constantly to keep my personal files on check and to use Github.
You can download git or the pretty nice Github app and install them. The Github app will get you a portable git, a bash console and the nice Github app for all your repositories.
Just remember that if you are installing git apart from the one in Github get this option checked. I like this option since it adds git to your path automatically.
Zeal is a simple offline API documentation browser inspired by Dash (OS X app). In summary Zeal can keep all the documentation for your favorite software offline. So for example, if you want to know the class for a modal in Bootstrap you can just install the Bootstrap documentation in Zeal and have it in a matter of seconds without an internet connection. Pretty handy for a forgetful person like me. So go ahead, download it and give it a try.
So I tried really really hard to get something remotely close to my terminal. And in the end I got something kinda similar you can work with. If you want something different from your powershell you have 2 good options. CONEMU or Console2, I tried both and they are good, in the end I went with CONEMU.
With some little tweaking you can get something decent working on CONEMU, also you might want to give Cywin a try if you miss some of the bash commands we are used to.
If you want to install Cygwin I recommend you add it to your path and install the following packages:
Let’s go through the different languages that will help us set up our environments. Although you can always get something like Vagrant I like to have them on my computer also. First lets go with the one that will help us the most for web development.
Also like Node.js and NPM we have Python and pip. Python is the language and pip is the package manager. Python is a programming language that lets you work quickly and integrate systems more effectively.
Now I recommend you download and install python 3.4. Why? Because Python 3.4 comes with pip pre installed and most of the qualms that I had with Python 3 are gone, like lack of libraries. But if you still need or want to use Python 2.7, that’s your choice. Remember you can always use virtualenv.
Ruby is a pretty popular language to develop right now and all thanks to Rails. Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. And Rails is an open-source web framework that’s optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration.
And installing both of them with all their dependencies is super easy. You just need to head up to RailsInstaller download-install and that’s it.
Last but not least is PHP. Oh my love/hate relationship with PHP can be summarized into “but it works”. PHP is a popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from this blog to the most popular websites in the world.
To get PHP in your computer is really easy, just like RailsInstaller you can just go to WAMP and get it done.
That’s all for now! Go forth, have fun with your new super machines and the next time you need to set up a machine from scratch, you can smile to yourself as the whole process is here for you to come back.