-
Install Homebrew
-
Install Node:
$ brew install node
-
Create a dltlandscape directory:
$ mkdir dltlandscape
-
Switch to dltlandscape directory:
$ cd dltlandscape
-
Clone the landscape app:
$ git clone git@github.com:cncf/landscapeapp.git
-
Setup the landscape app:
$ cd landscapeapp
-
$ npm install -g yarn@latest
-
$ yarn
-
$ cd ../
-
Clone the dlt-landscape:
$ git clone git@github.com:dltlandscape/dlt-landscape.git
-
Add the following to your .zshrc or .bashrc updating the directory paths for your local setup:
function y { export PROJECT_PATH=`pwd` && (cd ../landscapeapp && yarn run "$@")} export -f y # yf does a normal build and full test run alias yf='y fetch' alias yl='y check-links' alias yq='y remove-quotes' # yp does a build and then opens up the landscape in your browser ( can view the PDF and PNG files ) alias yp='y build && y open:dist' # yo does a quick build and opens up the landscape in your browser alias yo='y open:src' alias a='for path in /Users/user/dltlandscape/{landscapeapp,finos-landscape}; do echo $path; git -C $path pull -p; done; (cd /Users/user/dltlandscape/landscapeapp && yarn);'
-
Source your bashrc or zshrc, for example:
$ source ~/.zshrc
or open a new terminal window. -
Got to the dlt-landscape directory
$cd dlt-landscape
-
You can now use the alias you added earlier to run a local version of the app.
-
First use
yf
to fetch all the data. If this fails you'll need to set the Crunchbase key as an ENV VAR like$export CRUNCHBASE_KEY_4=yourkeydata
-
You can then run a quick build and open a local server at localhost:3000 with
$ yo
or a production build withyf