-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
executable file
·41 lines (31 loc) · 1.05 KB
/
install
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
#!/bin/bash
# INSTALLER FOR DEV MODE (NON-CONTAINERISED)
boldgreen="\033[1;32m"
endcolor="\033[0m"
echo -e "${boldgreen}Installing H2O...$endcolor"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
yes | apt-get update
yes | apt-get upgrade
yes | apt install build-essential python3-dev python3-pip
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt-get install -y nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt-get update && apt-get install yarn
pip3 install wheel
elif [[ "$OSTYPE" == "darwin"* ]]; then
yes | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update && brew upgrade
brew install python node@8 yarn
fi
npm install -g @angular/cli
pip3 install --upgrade setuptools
pip3 install wheel
cd backend
pip3 install -r requirements.txt
npm install orbit-db ipfs
cd ../frontend
yarn install --pure-lockfile
echo -e "$boldgreen
H2O installed.
$endcolor"