-
Notifications
You must be signed in to change notification settings - Fork 0
Set up WSL development environment
Microsoft guide to setting up WSL
-
Install Windows Terminal from the Microsoft store
-
Either
-
Install Ubuntu 20.04.5 LTS from the Microsoft store
Or
-
In powershell run the command
wsl --install -d Ubuntu-20.04
. Runwsl --list –online
to list possible distributions that can be used with WSL
-
-
Set a username and password etc (click open if installed via Microsoft Store first)
-
Check that 20.04 WSL Version 2 is your default environment by running in Powershell
wsl -l –v
- If not set correctly, run in Powershell
wsl --set-version Ubuntu-20.04 2
- If not set correctly, run in Powershell
-
To enable copy/pasting in Ubuntu: right-click on the top bar in Ubuntu -> properties -> tick 'Use Ctrl+Shift+C/V as Copy/Paste'.
-
Install your basic development tools by running in Ubuntu (in order)
-
sudo apt update
-
sudo apt install nodejs git npm curl
-
sudo npm install -g yarn
-
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
-
source ~/.bashrc
-
nvm install node
-
-
- In Ubuntu run
google-chrome
. A GUI window with linux chrome will open
- In Ubuntu run
-
In windows Visual Studio Code install the extension Remote Development
- if you want to use any other extension in WSL Ubuntu Land you will need to install the WSL version
-
Clone repos in Ubuntu
-
Mock Javascript Server (this is a mock javascript server to return data for the tables)
-
In Ubuntu navigate to repo and run
code .