Chromebook & AngularDart

In this article I'll explore setting up my Chromebook for developing on a GitHub repository.

The language I'll use is Dart+Angular.

GitHub

# Generate a private/public key pair.
ssh-keygen
# Print out my public key.
cat .ssh/id_rsa.pub
  • Add the public key to my GitHub account.
  • Clone the repo: git clone .... Good surprise! git is already preinstalled!

Dart + Angular

  • Follow the instructions for installing Dart on Linux at https://dart.dev/get-dart.
  • Upon install, when I typed dart, it ran it fine, but not pub. The reason is I had forgotten to add the path by running echo 'export PATH="$PATH:/usr/lib/dart/bin"' >> ~/.profile.
  • Install webdev: pub global activate webdev (source).
  • Add webdev to the path by appending export PATH="$PATH":"$HOME/.pub-cache/bin" into ~/.profile.

Then I go to my project's folder:

  • pub get
  • webdev serve