Web development on Chrome OS (Chrome Dev Summit 2019)
Key Takeaways
Sets up a web development environment on Chrome OS
Full Transcript
hi I'm Emily Roberts a developer advocate with Chrome OS developer relations today I'm gonna talk about web development on Chromebooks here is a quote from you a skilled web developer Chromebooks are awesome and if you don't remember saying this recently I hope that after watching this video it will become a daily thing Chromebooks are known for being lightweight fast secure web browsing machines they are so much more the device portfolio has grown to include tablets detachable z' all-in-one mini desktops and of course laptops and convertibles many of these are capable development devices so what can you run on them well ideas like visual studio code Atom webstorm tools like node react docker and get and you can test your web apps with multiple browsers including real mobile browsers as well you can check how your mobile app interacts with your web server all right on the same device okay let's get started and get your Chrome OS device ready for development we are going to set up a Linux environment and then install the tools you need to start open Chrome settings and search or scroll down to Linux click turn on this will download and setup a Linux environment when it's complete you'll see a terminal prompt pro tip if you will be doing a lot of development pin the terminal by right-clicking and choosing pin now we have a Linux environment let's install some tools head over to the visual studio code website and download the Linux dot de Bie package double click and choose install once it's installed you can find vs code in your app launcher if you're going to be using this IDE a lot you can pin it like we did with the terminal any application with a dot de Bie package can be installed in a similar way let's install atom the process is exactly the same download install and launch not every app has a dot de Bie package but you can install any of your favorite tools that support Debian Linux for example to install sublime text follow the Linux instructions on the website to setup the apt repo and install the editor using the command-line when we install node in a few seconds we'll take a closer look at command-line installation and the same thing goes for apps like webstorm just go to the website follow the Linux download and install instructions I won't do a web storm right now let's get right on to the server side of things oh and by the way at the end of this video I will direct you to a page by the Chrome OS Deverell team with installation instructions for all the apps and more discussed in this video now beyond what I mentioned today in this video if your favorite tool is supported in Linux it should run on Chromebooks for example I like G edit for text editing FileZilla as an FTP client and Inkscape for vector graphics editing today web development usually takes more than a text editor an IDE or an FTP client let's get to some other tools so we can make some really nice web apps nodejs requires GnuPG to open up your terminal and install it with apt that command is sudo apt install GnuPG 2 if you're new to apt you can probably guess that by replacing GnuPG 2 with whatever package name you want it will install that package now finding the right package name can sometimes be the tricky part note as we continue with this video and other terminal commands I won't read every line out loud but as mentioned I will provide a link at the end that has them all now that the dependency is installed let's get nodejs run this curl command followed by another apt install command for node that's it no js' is ready to go don't believe me well let's try it out with procs use git to clone the procs repo an NPM to install build and serve the proxy web app navigate to localhost 8080 in your web browser and check it out pretty cool so much minesweeping to be done let's try react using NPM you can install create react app then use create react app to create a skeleton project here I call it hello world react navigate into the directory where it was created and call NPM start now navigate to localhost 3000 in your browser and check it out if you prefer angular install that too the steps are almost the same again we use NPM to install at angular slash CLI create an angular app using ng new my angular project change directories into the project folder using CD for change directory my angular project now ng serve browse to localhost 4200 and check it out here you'll notice that I have procs a react app and an angular app all running on different ports all on the same Chromebook I think this is pretty handy what's more this is all local so as long as your tools are already installed you could do all of your development offline say like on a plane what about docker no problem again we're going to follow the normal Linux installation steps first we double check that all the dependencies are installed we add the docker repository to apt and then we update the apt package list since we just added a new repository we use sudo apt update to do this then install docker test it out by running hello world this is done with sudo docker run hello world you should get a nice mess showing that everything is working let's do something a little bit more advanced by running an Ubuntu Linux container and docker sudo docker run - it Ubuntu bash and there you go your output is gonna look something like this in the Ubuntu container I've taken a look at the OS version with cat slash et Cie / OS version and you can see it's really Ubuntu now once an app is ready to deploy it should be tested because Chromebooks have web Android and Linux you can test across multiple browsers on multiple platforms alright on the same device let's install a whole pile of browsers to prove this point using the terminal in apt you install Firefox for Linux note in debian the package name is Firefox - ESR then let's also install the chromium browser for Linux feeling brave let's install the brave browser for Linux I won't walk through all of these lines right now but again they are just the standard installation instructions for Debian Linux we install the GPG key we install the repo and finally brave now if for browsers aren't enough let's add a few more head over to the Google Play Store and install some Android browsers let's go with Firefox for Android opera for Android and Chrome Beta for Android we now have seven browsers installed which can give us a reasonable first attempt at test coverage we have the Chrome OS Chrome browser three Android browsers that is Firefox Chrome Beta and opera three Linux browsers Firefox for Linux brave and chromium and here you can see that our procs web app is running on all seven one last thing to mention in case you have a mobile app that interacts with your web service you can do Android TBWA and flutter development on Chrome OS devices which means you can build and package your mobile app on your Chromebook test it right on the device you were coding on like any other Android app build your web component start your web server and then test everything on multiple browsers and see how it interacts right on the device Android studio is as easy to install as visual studio code or atom head over to the Android studio site and download the dot de Bie file then you can code your app like you'd expect an Android studio with one cool difference you'll notice that you can push directly to the Chromebook you're working on pretty cool full instructions on how to set this up can be found on the link at the end of this video on the android page so with your chromebook you can build web apps with the tools you are used to develop and test right on device with tools like nodejs docker and angular tests across multiple browsers including mobile browsers and even test mobile app and web interaction right on device and all of this could even happen offline like on a long flight so now don't you agree Chromebooks are awesome as promised here is a link to a guide to get your Linux environment customized just the way you like it's cross dot page dot link slash web - dev thank you can't wait to see what you build [Music]
Original Description
This talk demonstrates how in a few clicks you can get a full web development environment up and running on Chrome OS, including how to do cross-browser testing!
Presented by: Emilie Roberts
#ChromeDevSummit All Sessions → https://goo.gle/CDS19
Subscribe to Google Chrome Developers → https://goo.gle/ChromeDevs
Event photos → https://goo.gle/CDS19Photos
event: Chrome Dev Summit 2019; re_ty: Publish; product: Chrome - Chrome OS; fullname: Emilie Roberts;
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Chrome for Developers · Chrome for Developers · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Polymer Performance Patterns (The Polymer Summit 2015)
Chrome for Developers
Polymer Power Tools (The Polymer Summit 2015)
Chrome for Developers
Chrome Dev Summit 2014 – Chrome Case Studies
Chrome for Developers
Web Directions Code 2015 round up
Chrome for Developers
Maintainable Code - HTTP203
Chrome for Developers
iron-ajax… wat?! -- Polycasts #26
Chrome for Developers
The Guardian - Supercharged
Chrome for Developers
ES2015 (next version of JavaScript), Totally Tooling Tips (S2 Ep1)
Chrome for Developers
#AskPolymer: Rob answers all the questions ever -- Polycasts #27
Chrome for Developers
The Future of JavaScript - HTTP203
Chrome for Developers
Data Binding 101 -- Polycasts #28
Chrome for Developers
The Guardian part 2 - Supercharged
Chrome for Developers
The Future of Web Audio: with Chris Wilson and Chris Lowis
Chrome for Developers
Chrome 46: New motion-path animations, client hints and service worker improvements
Chrome for Developers
Sublime Snippets, Totally Tooling Tips (S2 Ep2)
Chrome for Developers
#AskPolymer: How do you make the show? -- Polycasts #29
Chrome for Developers
Critical Path CSS, Totally Tooling Tips (S2 Mini Tip #1)
Chrome for Developers
Binding to Objects -- Polycasts #30
Chrome for Developers
Player FM - Supercharged
Chrome for Developers
Where’s the Designer? #AskPolymer -- Polycasts #31
Chrome for Developers
Jake Beats Wikipedia - HTTP203
Chrome for Developers
Supercharged Observers! -- Polycasts #32
Chrome for Developers
Jai's Web blog - Supercharged
Chrome for Developers
Windows Command-line Tooling, Totally Tooling Tips (S2, Ep4)
Chrome for Developers
What about internationalization? #AskPolymer -- Polycasts #33
Chrome for Developers
Developing for Billions (Chrome Dev Summit 2015)
Chrome for Developers
Google+ Performance Improvement Comparison
Chrome for Developers
Deploying HTTPS: The Green Lock and Beyond (Chrome Dev Summit 2015)
Chrome for Developers
Progressive Web Apps (Chrome Dev Summit 2015)
Chrome for Developers
Instant Loading with Service Workers (Chrome Dev Summit 2015)
Chrome for Developers
Increase Engagement with Web Push Notifications (Chrome Dev Summit 2015)
Chrome for Developers
Engaging with the Real World: Web Bluetooth and Physical Web (Chrome Dev Summit 2015)
Chrome for Developers
Asking for Permission: respectful, opinionated UI (Chrome Dev Summit 2015)
Chrome for Developers
Polymer - State of the Union (Chrome Dev Summit 2015)
Chrome for Developers
Building Progressive Web Apps with Polymer (Chrome Dev Summit 2015)
Chrome for Developers
Introduction to RAIL (Chrome Dev Summit 2015)
Chrome for Developers
DevTools in 2015: Authoring to the max (Chrome Dev Summit 2015)
Chrome for Developers
RAIL in the real world (Chrome Dev Summit 2015)
Chrome for Developers
#ChromeDevSummit talks are up - W00T! -- Polycast #34
Chrome for Developers
V8 Performance from the Driver's Seat (Chrome Dev Summit 2015)
Chrome for Developers
Quantify and improve real-world RAIL (Chrome Dev Summit 2015)
Chrome for Developers
Owning your performance: RAIL (Chrome Dev Summit 2015)
Chrome for Developers
HTTP/2 101 (Chrome Dev Summit 2015)
Chrome for Developers
Leadership Panel (Chrome Dev Summit 2015)
Chrome for Developers
Build Processes, Totally Tooling Tips (S2, Ep 5)
Chrome for Developers
Accessibility (Chrome Dev Summit 2015)
Chrome for Developers
Binding to Arrays -- Polycasts #35
Chrome for Developers
HTTP2 - HTTP203
Chrome for Developers
Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Chrome for Developers
Call For Submissions - Supercharged
Chrome for Developers
Cross Device Testing, Totally Tooling Tips (S2 Ep6)
Chrome for Developers
Testing AJAX with Web Component Tester -- Polycasts #37
Chrome for Developers
Slack: Extended Xmas Special - Supercharged
Chrome for Developers
Browser testing with Travis & Sauce Labs -- Polycasts #38
Chrome for Developers
Optimize for production with Vulcanize -- Polycasts #39
Chrome for Developers
Highlights from Chrome Dev Summit 2015
Chrome for Developers
Chrome 48: Custom buttons in notifications, DevTools Security panel, and Presentation mode
Chrome for Developers
Crisper: Protecting your Polymer app with CSP -- Polycasts #40
Chrome for Developers
How do I use Sass with Polymer? #AskPolymer -- Polycasts #41
Chrome for Developers
Colors – DevTools Tonight #0 (Pilot)
Chrome for Developers
More on: Systems Design Basics
View skill →Related Reads
🎓
Tutor Explanation
DeepCamp AI