Sign inSign up

shinyay/claat

By shinyay

•Updated over 5 years ago

claat cli for code labs

Image
0

452

shinyay/claat repository overview

⁠Code Labs Tutorial Getting Started

Getting Started with Code Labs Formated Tutorial

⁠Description

Based on the following repository

⁠Prerequisite
  • Go
  • Node.js v10+ and npm
  • claat (open source command line tool maintained by Google)
⁠Go
⁠Cloud Shell
⁠Linux
$ wget https://golang.org/dl/go1.15.linux-amd64.tar.gz
$ sudo tar -C /usr/local -xzf  go1.15.linux-amd64.tar.gz
$ set --universal -x GOPATH $HOME/go
$ set --universal -x GOROOT /usr/local/go
$ vim ~/.config/fish/config.fish

$PATH:/usr/local/go/bin 
$PATH:$HOME/go/bin
⁠Macbook
$ brew install go
$ export GOPATH=$HOME/Go
$ export GOROOT=/usr/local/opt/go/libexec
$ export PATH=$PATH:$GOPATH/bin
$ export PATH=$PATH:$GOROOT/bin
⁠Node.js & npm
  • sudo apt update
  • sudo apt install -y nodejs npm
⁠claat
  • claat⁠
    • go get -u -v -x github.com/googlecodelabs/tools/claat

⁠Demo

⁠Features

  • feature:1
  • feature:2

⁠Requirement

⁠Usage

⁠Codelab scenario
$ mkdir codelabs
$ cd codelabs
⁠Claat for Codelab scenario
⁠Pull Claat Container Image
$ docker pull shinyay/claat
⁠Export HTML from Markdown
$ docker run --rm -it -v (pwd):/app shinyay/claat export <TARGET_MARKDOWN>
⁠Serve published HTML
$ cd <GENERATED_HTML_DIR>
$ docker run --rm -it -v (pwd):/app -p 9090:9090 shinyay/claat serve -addr 0.0.0.0:9090
⁠gulp for Codelab site
$ gulp serve --codelabs-dir=codelabs

⁠Installation

⁠Licence

Released under the MIT license⁠

⁠Author

shinyay⁠

Tag summary

Content type

Image

Digest

Size

6.2 MB

Last updated

over 5 years ago

docker pull shinyay/claat