DEV Community

Tej
Tej

Posted on • Updated on

Workflow

Gone are the days when Macbooks were seen as a pivot in Front End Development world. At this moment, Front End Development spectrum is blessed where Windows has improved to the point that you no longer need to seek for expensive Mac machines. You could get away with buying a minimal configured machine from Kijiji or eBay, that can run a WSL and continue to build on your next startup idea.

There are only 3 main things you would require on your Windows machine:

  • Visual Studio Code
  • WSL (Recommended: Ubuntu)
  • Hyper (Recommended)
  • Cascadia Font (Recommended)

Step 1 (Clean up)

  • Update Windows 10 to the latest patches.
  • Use dark mode in Windows for toned display. (FLUX App is recommended for developers who have eye sensitivity problems. You can download FLUX using choco install f.lux once you have setup Chocolatey)
  • Restart the machine and move on to Step 2.

Step 2 (Apps)

Step 3 (Clean up)

  • Configure VS Code terminal and Hyper to use Bash (WSL).
  • VS Code will install specific extensions like "Remote WSL for Ubuntu", please complete those processes.
  • Download and install Cascadia font: https://github.com/microsoft/cascadia-code. Set that as default font in Hyper.
  • Restart the machine.

Step 4 (WSL Clean up)

  • Update and clean up the Ubuntu WSL distro using: sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt autoclean && sudo apt autoremove && sudo apt purge.

Step 5 (Apps)

Step 6 (Revision)

Let us pause here and see what we have achieved so far. All your project dependencies like Node, Git etc. stay within your WSL machine. Your Windows machine only holds VS Code and Hyper apps. This setup is so clean, has less clutter and easy to maintain. Going forward, initialize all your projects in WSL. Let's see a sample below.

Step 7 (Typical Workflow)

  • Add a Sites directory in home location using cd ~ && mkdir Sites.
  • Clone a sample project here: git clone https://github.com/taniarascia/react-hooks && cd react-hooks && yarn && yarn start.
  • Run code . to open the source files from WSL to VS Code in Windows.
  • You can see the testing environment running on your Windows machine via WSL.

Step 8 (Maintenance)

Run u in the WSL. It is an alias available in .bashrc file that will update/prune all necessary/outdated packages in WSL.

We have done it! Hopefully, you have got your development environment successfully setup in Windows. It is clean, minimal and tasks are distributed across WSL and Windows. Stay hassle free and have fun coding amazing apps. Set the trend: #MacIsOptionalIn2019.

Goodies

Top comments (3)

Collapse
 
moopet profile image
Ben Sinclair • Edited

You could always put linux directly onto an older machine, if you were looking to save money. Your setup is literally using Windows to host a terminal and VSCode, both of which are natively available for linux.

Collapse
 
jwkicklighter profile image
Jordan Kicklighter

I was thinking this same thing. There are many options for good/cheap hardware, and many distros to choose from for preconfigured experiences. Get a Thinkpad and use Mint/Manjaro/Ubuntu, you're good to go.

Collapse
 
crushjz profile image
Cesare Puliatti

On windows, I haven't found any terminal that is as good as iTerm2 on macOs.

The feature I'm missing most, is the ability to save and restore a tabs and windows arrangements. I haven't found any Windows terminal app to do this.