Skip to content

Instantly share code, notes, and snippets.

@pongstr
Last active January 3, 2016 14:25
Show Gist options
  • Select an option

  • Save pongstr/10530418 to your computer and use it in GitHub Desktop.

Select an option

Save pongstr/10530418 to your computer and use it in GitHub Desktop.
Windows Web Development.

Windows Front-end WebDev

Writing up a guide for people in the new office who prefer to work on windows machine but still be able to use the methods the mac guys use.

Installing Git

Download and Install latest git version from here and check these installation options:

  • Windows Explorer Integration (Git Bash and Git GUI)
  • Use Git Bash only
  • Checkout as is, commit Unix-style line endings

Installing Ruby

Download Ruby 2.0.0 Here:

Download Ruby 2.0.0 Devkit here:

and then install RubyGems

There might be better ways to install these, but I'm kind of re-learning Windows so we'll improve all of these later.

  1. First step is to install Ruby 2.0.0 (this should be easy, install it in C:\Ruby200)
  2. Extract Ruby2.0.0 Devkit to C:\Devkit and then run the following commands
# Change directory to Devkit
> chdir C:\Devkit

# initialize installer
> ruby dk.rb init

# install
> ruby dk.rb install

Installing RubyGems

  • Extract RubyGems to your desktop and run Setup.rb (this will install RubyGems)
  • From Start Menu, open: Start Command Prompt with Ruby and update RubyGems
# update ruby gem
gem update --system

# install this gem 
gem install wdm
  • Install these gems
# this adds libyaml deps
gem install bundler-libyaml
gem install psych --enable-bundled

# install github-bundle of jekyll
gem install github-pages

# sass/scss with compass
gem install compass

# gems below are optional, these are front-end frameworks
# you're most likely to use for development.
gem install foundation
gem install bootstrap-sass

once all of these are installed, let's proceed to installing NodeJS

Installing NodeJS

Download the appropriate binary for your Windows (e.g. 32-bit/64-bit) here

  • Install the appropriate binary you've just downloaded.
  • Create a Hello World Server save it on your desktop as server.js:
var http = require('http');

http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/html'});
  res.end('Hello World\n');
}).listen(4001, 'localhost');

console.log('Server is running on: http://localhost:4001');
  • From your start menu, open NodeJS Command prompt
# Navigate to your desktop
> cd Users\{YOUR_ACCOUNT_NAME}\Desktop

# Run your HelloWorld Server
> node server.js

Now point your browser to http://localhost:4001, when you see HelloWorld displayed, you're ready to install NodeJS packages on your machine, on your start menu open NodeJS command prompt and run these commands:

npm install -g bower
npm install -g express
npm install -g grunt-cli
npm install -g jshint
npm install -g less

Thoughts:

Compare how this is done on a Mac or Ubuntu machine, the experience has been a pain in the ass and it almost seems like a lot of time has been wasted just by gathering the components but then again, this is my first time setting up a windows machine for development, things could improve in the future.

If you got some cash, just get a mac or if not, just dual-boot your machine with Ubuntu and make your life a little less harder and enjoy coding rather than fixing all these shits. lol, jk Windows is cool.

Windows Front-end Dev Environment

Windows 10 has good reviews out there everywhere on the internets (with Cortana turned off) so I'm super curious what would front-end development would feel like on windows.

Getting Started

User Account and Privacy

In Summary content by Tek Syndicate

  1. Disable internet connection, use local account.
  2. Windows Tweaker 4, you know setup privacy stuff.
  3. Install package manager for windows, Scoop. Website
  4. Prettify Powershell with concfg
  5. Install editors Atom/Sublime Text 3, port preferences and settings from osx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment