From 46975583a1580b2961fa1572baa4a8e087732cd0 Mon Sep 17 00:00:00 2001 From: Serhii Volovyk Date: Thu, 10 Nov 2022 17:49:46 +0200 Subject: [PATCH 1/3] WSL2 instructions --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 0ab18225a..1becf11b9 100644 --- a/README.md +++ b/README.md @@ -545,3 +545,18 @@ PublicKey.fromString('secp256k1:5r22SrjrDvgY3wdQsnjgxkeAbU1VcM71FYvALEQWihjM3Xk4 ``` Once a PublicKey object is created, it can be used in high level promise APIs that takes a public key, such as `addFullAccessKey`, `addAccessKey` and `stake`. + + +## How to use NEAR SDK JS on Windows +You can develop smart contracts on Windows using Windows Subsystem for Linux (WSL2). +In order to use WSL2, follow the next steps: +- Run `PowerShell` as Administrator +- Execute `wsl --install` to install Ubuntu and do additional setup automatically. Check more details [here](https://learn.microsoft.com/en-us/windows/wsl/install) +- Restart your machine +- `WSL2` will continue setup process on start. Setup your username and password when prompted. +- Check [this](https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl) guide to setup `npm`, `node`, `npx`, `VSCode` and other tools of your choice in order to start developing. + +In case of any issues of setting up WSL2: +- Make sure your Windows OS is up to date +- Virtualisation is turned on in BIOS +- `Windows Subsystem for Linux` and `Virtual Machine Platform` are turned on in `Windows Features` (Start -> Search -> Turn Windows Feature On or Off) From 735b609fa212f54da5174d3e019b91cdf71577fc Mon Sep 17 00:00:00 2001 From: Serhii Volovyk Date: Thu, 10 Nov 2022 17:56:42 +0200 Subject: [PATCH 2/3] README fix --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1becf11b9..6ce262c35 100644 --- a/README.md +++ b/README.md @@ -556,7 +556,7 @@ In order to use WSL2, follow the next steps: - `WSL2` will continue setup process on start. Setup your username and password when prompted. - Check [this](https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl) guide to setup `npm`, `node`, `npx`, `VSCode` and other tools of your choice in order to start developing. -In case of any issues of setting up WSL2: -- Make sure your Windows OS is up to date +In case of any issues of setting up WSL2 make sure that: +- Your Windows OS is up to date - Virtualisation is turned on in BIOS - `Windows Subsystem for Linux` and `Virtual Machine Platform` are turned on in `Windows Features` (Start -> Search -> Turn Windows Feature On or Off) From d73da46c7000ec448780873c78b04d974b356e47 Mon Sep 17 00:00:00 2001 From: Serhii Volovyk Date: Thu, 10 Nov 2022 18:01:42 +0200 Subject: [PATCH 3/3] lint fix --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ce262c35..5538e6e96 100644 --- a/README.md +++ b/README.md @@ -546,10 +546,11 @@ PublicKey.fromString('secp256k1:5r22SrjrDvgY3wdQsnjgxkeAbU1VcM71FYvALEQWihjM3Xk4 Once a PublicKey object is created, it can be used in high level promise APIs that takes a public key, such as `addFullAccessKey`, `addAccessKey` and `stake`. - ## How to use NEAR SDK JS on Windows + You can develop smart contracts on Windows using Windows Subsystem for Linux (WSL2). In order to use WSL2, follow the next steps: + - Run `PowerShell` as Administrator - Execute `wsl --install` to install Ubuntu and do additional setup automatically. Check more details [here](https://learn.microsoft.com/en-us/windows/wsl/install) - Restart your machine @@ -557,6 +558,7 @@ In order to use WSL2, follow the next steps: - Check [this](https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl) guide to setup `npm`, `node`, `npx`, `VSCode` and other tools of your choice in order to start developing. In case of any issues of setting up WSL2 make sure that: + - Your Windows OS is up to date - Virtualisation is turned on in BIOS - `Windows Subsystem for Linux` and `Virtual Machine Platform` are turned on in `Windows Features` (Start -> Search -> Turn Windows Feature On or Off)