Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Lets face it that coding on windows has had some big disadvantages over coding on mac or linux. So many disadvantages that a lot of people just give up or install a virtual linux installation to run on windows under vmware or some other solution. However with the release of windows 11 we finally have an easy to install virtual linux machine that is as easy as downloading ubuntu from the Microsoft store. Windows 11 includes WSL2 that previously had a bunch of hoops you had to jump through to get working. Now you can develop as easily on Windows as on Mac or Linux. The following steps will install ubuntu, visual studio to code in and everything to get scaffold-eth working on Windows 11. 1. Install ubuntu (from Microsoft store) 2. Install windows terminal (from Microsoft store) 3. Install GWSL from Microsoft store 4. Install visual studio code from windows store 5. Open visual studio code and install the extension "Remote - WSL" then close visual studio code 6. Open ubuntu from the start menu 7. Create a username and replace my commands below that say username with whatever name you created 8. sudo apt-get update $$ sudo apt-get upgrade (if download speed is slow I had to unplug and replug my usb wireless network adapter to speed it up) 9. sudo apt-get install libsecret-1-dev npm 10. curl [https://raw.githubusercontent.com/creationix/nvm/master/install.sh](https://raw.githubusercontent.com/creationix/nvm/master/install.sh) | bash 11. Close all ubuntu / linux windows 12. Open windows powershell with administrative rights - then type in wsl --shutdown 13. Open ubuntu terminal 14. nvm install node 15. nvm install 14 16. nvm use 14 17. yarn install 18. Open 4 separate bash terminals (I use windows terminal but you can use whatever) 1 (In the first terminal type the following commands 19. git clone [https://github.com/scaffold-eth/scaffold-eth.git](https://github.com/scaffold-eth/scaffold-eth.git) 20. cd /home/username/scaffold-eth 21. nvm use 14 22. yarn chain 2 23. cd /home/username/scaffold-eth 24. nvm use 14 25. yarn deploy 3 26. nvm use 14 27. cd /home/username/scaffold-eth 28. yarn start 4 29. cd /home/username/scaffold-eth 30. code .
Related posts
- "#Bitcoin BTCs Ordinals get all the attention these days. Meanwhile Bitcoin Cash builds the global sound payment network for everyone, with smart functions by design, not by accident. Learn about CashTokens from this blog post: [link]"
- Bulk minting 100 NFT's to offer to friends
- Best starter guides for implementing smart contracts on testnet?
- EatTheBlocks Courses vs Alternatives
- Best way for beginner to experiment with blockchain, accounts, transactions, contracts, ...?