Web development on Chrome OS (Chrome Dev Summit 2019)

Chrome for Developers · Intermediate ·📰 AI News & Updates ·6y ago

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 Polymer Performance Patterns (The Polymer Summit 2015)
Polymer Performance Patterns (The Polymer Summit 2015)
Chrome for Developers
2 Polymer Power Tools (The Polymer Summit 2015)
Polymer Power Tools (The Polymer Summit 2015)
Chrome for Developers
3 Chrome Dev Summit 2014 – Chrome Case Studies
Chrome Dev Summit 2014 – Chrome Case Studies
Chrome for Developers
4 Web Directions Code 2015 round up
Web Directions Code 2015 round up
Chrome for Developers
5 Maintainable Code - HTTP203
Maintainable Code - HTTP203
Chrome for Developers
6 iron-ajax… wat?! -- Polycasts #26
iron-ajax… wat?! -- Polycasts #26
Chrome for Developers
7 The Guardian - Supercharged
The Guardian - Supercharged
Chrome for Developers
8 ES2015 (next version of JavaScript), Totally Tooling Tips (S2 Ep1)
ES2015 (next version of JavaScript), Totally Tooling Tips (S2 Ep1)
Chrome for Developers
9 #AskPolymer: Rob answers all the questions ever -- Polycasts #27
#AskPolymer: Rob answers all the questions ever -- Polycasts #27
Chrome for Developers
10 The Future of JavaScript - HTTP203
The Future of JavaScript - HTTP203
Chrome for Developers
11 Data Binding 101 -- Polycasts #28
Data Binding 101 -- Polycasts #28
Chrome for Developers
12 The Guardian part 2 - Supercharged
The Guardian part 2 - Supercharged
Chrome for Developers
13 The Future of Web Audio: with Chris Wilson and Chris Lowis
The Future of Web Audio: with Chris Wilson and Chris Lowis
Chrome for Developers
14 Chrome 46: New motion-path animations, client hints and service worker improvements
Chrome 46: New motion-path animations, client hints and service worker improvements
Chrome for Developers
15 Sublime Snippets, Totally Tooling Tips (S2 Ep2)
Sublime Snippets, Totally Tooling Tips (S2 Ep2)
Chrome for Developers
16 #AskPolymer: How do you make the show? -- Polycasts #29
#AskPolymer: How do you make the show? -- Polycasts #29
Chrome for Developers
17 Critical Path CSS, Totally Tooling Tips (S2 Mini Tip #1)
Critical Path CSS, Totally Tooling Tips (S2 Mini Tip #1)
Chrome for Developers
18 Binding to Objects -- Polycasts #30
Binding to Objects -- Polycasts #30
Chrome for Developers
19 Player FM - Supercharged
Player FM - Supercharged
Chrome for Developers
20 Where’s the Designer? #AskPolymer -- Polycasts #31
Where’s the Designer? #AskPolymer -- Polycasts #31
Chrome for Developers
21 Jake Beats Wikipedia - HTTP203
Jake Beats Wikipedia - HTTP203
Chrome for Developers
22 Supercharged Observers! -- Polycasts #32
Supercharged Observers! -- Polycasts #32
Chrome for Developers
23 Jai's Web blog - Supercharged
Jai's Web blog - Supercharged
Chrome for Developers
24 Windows Command-line Tooling, Totally Tooling Tips (S2, Ep4)
Windows Command-line Tooling, Totally Tooling Tips (S2, Ep4)
Chrome for Developers
25 What about internationalization? #AskPolymer -- Polycasts #33
What about internationalization? #AskPolymer -- Polycasts #33
Chrome for Developers
26 Developing for Billions (Chrome Dev Summit 2015)
Developing for Billions (Chrome Dev Summit 2015)
Chrome for Developers
27 Google+ Performance Improvement Comparison
Google+ Performance Improvement Comparison
Chrome for Developers
28 Deploying HTTPS: The Green Lock and Beyond (Chrome Dev Summit 2015)
Deploying HTTPS: The Green Lock and Beyond (Chrome Dev Summit 2015)
Chrome for Developers
29 Progressive Web Apps (Chrome Dev Summit 2015)
Progressive Web Apps (Chrome Dev Summit 2015)
Chrome for Developers
30 Instant Loading with Service Workers (Chrome Dev Summit 2015)
Instant Loading with Service Workers (Chrome Dev Summit 2015)
Chrome for Developers
31 Increase Engagement with Web Push Notifications (Chrome Dev Summit 2015)
Increase Engagement with Web Push Notifications (Chrome Dev Summit 2015)
Chrome for Developers
32 Engaging with the Real World: Web Bluetooth and Physical Web (Chrome Dev Summit 2015)
Engaging with the Real World: Web Bluetooth and Physical Web (Chrome Dev Summit 2015)
Chrome for Developers
33 Asking for Permission: respectful, opinionated UI (Chrome Dev Summit 2015)
Asking for Permission: respectful, opinionated UI (Chrome Dev Summit 2015)
Chrome for Developers
34 Polymer - State of the Union (Chrome Dev Summit 2015)
Polymer - State of the Union (Chrome Dev Summit 2015)
Chrome for Developers
35 Building Progressive Web Apps with Polymer (Chrome Dev Summit 2015)
Building Progressive Web Apps with Polymer (Chrome Dev Summit 2015)
Chrome for Developers
36 Introduction to RAIL (Chrome Dev Summit 2015)
Introduction to RAIL (Chrome Dev Summit 2015)
Chrome for Developers
37 DevTools in 2015: Authoring to the max (Chrome Dev Summit 2015)
DevTools in 2015: Authoring to the max (Chrome Dev Summit 2015)
Chrome for Developers
38 RAIL in the real world (Chrome Dev Summit 2015)
RAIL in the real world (Chrome Dev Summit 2015)
Chrome for Developers
39 #ChromeDevSummit talks are up - W00T! -- Polycast #34
#ChromeDevSummit talks are up - W00T! -- Polycast #34
Chrome for Developers
40 V8 Performance from the Driver's Seat (Chrome Dev Summit 2015)
V8 Performance from the Driver's Seat (Chrome Dev Summit 2015)
Chrome for Developers
41 Quantify and improve real-world RAIL (Chrome Dev Summit 2015)
Quantify and improve real-world RAIL (Chrome Dev Summit 2015)
Chrome for Developers
42 Owning your performance: RAIL (Chrome Dev Summit 2015)
Owning your performance: RAIL (Chrome Dev Summit 2015)
Chrome for Developers
43 HTTP/2 101 (Chrome Dev Summit 2015)
HTTP/2 101 (Chrome Dev Summit 2015)
Chrome for Developers
44 Leadership Panel (Chrome Dev Summit 2015)
Leadership Panel (Chrome Dev Summit 2015)
Chrome for Developers
45 Build Processes, Totally Tooling Tips (S2, Ep 5)
Build Processes, Totally Tooling Tips (S2, Ep 5)
Chrome for Developers
46 Accessibility (Chrome Dev Summit 2015)
Accessibility (Chrome Dev Summit 2015)
Chrome for Developers
47 Binding to Arrays -- Polycasts #35
Binding to Arrays -- Polycasts #35
Chrome for Developers
48 HTTP2 - HTTP203
HTTP2 - HTTP203
Chrome for Developers
49 Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Chrome for Developers
50 Call For Submissions - Supercharged
Call For Submissions - Supercharged
Chrome for Developers
51 Cross Device Testing, Totally Tooling Tips (S2 Ep6)
Cross Device Testing, Totally Tooling Tips (S2 Ep6)
Chrome for Developers
52 Testing AJAX with Web Component Tester -- Polycasts #37
Testing AJAX with Web Component Tester -- Polycasts #37
Chrome for Developers
53 Slack: Extended Xmas Special - Supercharged
Slack: Extended Xmas Special - Supercharged
Chrome for Developers
54 Browser testing with Travis & Sauce Labs -- Polycasts #38
Browser testing with Travis & Sauce Labs -- Polycasts #38
Chrome for Developers
55 Optimize for production with Vulcanize -- Polycasts #39
Optimize for production with Vulcanize -- Polycasts #39
Chrome for Developers
56 Highlights from Chrome Dev Summit 2015
Highlights from Chrome Dev Summit 2015
Chrome for Developers
57 Chrome 48: Custom buttons in notifications, DevTools Security panel, and Presentation mode
Chrome 48: Custom buttons in notifications, DevTools Security panel, and Presentation mode
Chrome for Developers
58 Crisper: Protecting your Polymer app with CSP -- Polycasts #40
Crisper: Protecting your Polymer app with CSP -- Polycasts #40
Chrome for Developers
59 How do I use Sass with Polymer? #AskPolymer -- Polycasts #41
How do I use Sass with Polymer? #AskPolymer -- Polycasts #41
Chrome for Developers
60 Colors – DevTools Tonight #0 (Pilot)
Colors – DevTools Tonight #0 (Pilot)
Chrome for Developers

Related Reads

📰
HEMN Technologies
Learn how HEMN Technologies is redefining the approach to AI adoption in businesses, focusing on a more proactive and innovative strategy rather than just adapting to AI.
Medium · AI
📰
Google and Ford are funding a push into the trades, the jobs their AI can’t do
Google and Ford are funding a push into trades jobs that AI can't do, highlighting the need for skilled workers in areas like electrician and technician roles
The Next Web AI
📰
$130 Billion In AI Data Centers Stalled. The Bottleneck Is Consent
$130 billion in AI data center projects are stalled due to local opposition, highlighting the need for developers to prioritize community consent
Forbes Innovation
📰
Global Trade Dynamics Q3 2026 — Geopolitical & Macroeconomic Analysis
Analyze global trade dynamics using AI and data analysis to understand geopolitical and macroeconomic trends
Dev.to AI
Up next
The Most Important Conversation in AI Right Now
Matthew Berman
Watch →