Fireship · @fireship

Run VS Code in the browser with massive computing resources

Uploaded April 1, 2019 · Length 9:49

Run VS Code in the browser with massive computing resources

Summary

Run VS Code in the browser with massive computing resources using Code Server on Google Cloud Platform and Tensor Processing Unit (TPU) for machine learning.

  • vs code in browser
  • code server
  • google cloud platform
  • tensor processing unit
  • machine learning
  • tpu
  • cloud computing
  • vs code extensions

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    [Music]

  2. 0:05

    the beauty of BS code is that it starts

  3. 0:08

    out minimal it allows you to customise

  4. 0:10

    it into a full-blown integrated

  5. 0:12

    development environment I really like

  6. 0:13

    the atom one dark syntax theme vs code

  7. 0:15

    icons I have a bunch of custom workspace

  8. 0:18

    settings and extensions that I just

  9. 0:19

    couldn't live without but the problem is

  10. 0:21

    that all these customizations are tied

  11. 0:23

    to my local machine but fortunately a

  12. 0:25

    company called coder just recently open

  13. 0:27

    sourced a project called code server

  14. 0:28

    that allows you to run vs code in the

  15. 0:30

    cloud in today's video I'll show you how

  16. 0:32

    to run your own instance of code server

  17. 0:33

    on Google cloud platform and will

  18. 0:36

    supercharge it with a tensor processing

  19. 0:37

    unit which will give it access to a

  20. 0:39

    massive amount of computing resources

  21. 0:40

    for machine learning if you're new here

  22. 0:42

    like and subscribe and you can find a

  23. 0:44

    step-by-step breakdown of this video on

  24. 0:46

    fire ship i/o let's start by taking a

  25. 0:48

    look at coder this is a startup that has

  26. 0:50

    taken BS code and made it available in

  27. 0:52

    the browser this allows you to access

  28. 0:53

    your IDE with all of its settings from

  29. 0:55

    any machine even a cell phone or tablet

  30. 0:57

    if you wanted to it also allows multiple

  31. 0:59

    developers to collaborate on the same

  32. 1:00

    project from the same editor and because

  33. 1:03

    you consult host it you can attach an

  34. 1:04

    unlimited amount of computing resources

  35. 1:06

    to its back-end the easiest way to get

  36. 1:08

    started is to just log into coder and it

  37. 1:10

    will immediately bring you to this

  38. 1:11

    instance of des code and the awesome

  39. 1:13

    thing about this is that it feels just

  40. 1:14

    like the vs code on your desktop so the

  41. 1:16

    first thing I'll do is go to the

  42. 1:18

    extensions and then install the atom one

  43. 1:19

    dark-themed much better and if we open a

  44. 1:22

    terminal session you can see that we

  45. 1:24

    have access to the actual virtual

  46. 1:25

    machine that's running this container it

  47. 1:27

    doesn't come with no js' installed by

  48. 1:29

    default so I'm going to the node version

  49. 1:31

    manager repo and grabbing the install

  50. 1:33

    command that installs node version

  51. 1:35

    manager on the container then we can use

  52. 1:36

    nvm to install node itself at this point

  53. 1:39

    we could install angular or react and

  54. 1:41

    start doing front-end development from

  55. 1:42

    this virtual environment when developing

  56. 1:44

    in the browser you might notice a small

  57. 1:46

    amount of lag when saving files because

  58. 1:48

    that has to happen remotely but when

  59. 1:50

    you're actually writing code it should

  60. 1:51

    feel just like you're working in the

  61. 1:52

    desktop version of es code now coder

  62. 1:55

    gives us a couple gigabytes of memory

  63. 1:56

    and storage space but there's a good

  64. 1:58

    chance you want to go beyond these