For Installation information please visit: https://docs.microsoft.com/en-us/windows/wsl/install-win10
1.Configure WSL 2
After installation search for %UserProfile% in the local machine. check if there is any .wslconfig file.
If there is no .wslconfig file create one with this content depends on the available resource.
| [wsl2] | 
|---|
Install windows Terminal Application and check if everything is configured properly.
2.Configuring NodeJS on WSL
|  | 
|---|
3.Configuring Git and project
To install git, in a wsl terminal, we run
|  | 
|---|
To set up your Git config file, open a command line for the distribution you're working in and set your name with this command (replacing "Your Name" with your Git username):
| git config --global user.name "Your Name" | 
|---|
Set your email with this command (replacing "youremail@domain.com" with the email you use on your Git account):
| git config --global user.email "youremail@domain.com" | 
|---|
configure ssh key on linux https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1804
Configure the key in github settings then checkout with:
| git clone <project repo> | 
|---|
4.Configuring Development Environment(VSCODE)
To open a project from your WSL distribution, open the distribution's command line and enter :
| code . | 
|---|
 Install  Remote-WSL  in VS Code.
Run the application in Remote-WSL from the terminal
Comments
Post a Comment