Last active
May 16, 2018 20:43
-
-
Save rnkhouse/fa3047e45b8859c6c787b61a5f064203 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IMPORTANT: Run this script from /home/<USER>/ directory: bash -c "$(curl SCRIPT_URL)" | |
set -e | |
purpleColor='\033[0;95m' | |
normalColor='\033[0m' | |
USER=$(whoami) | |
# Dependencies: | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update && sudo apt-get install yarn -y | |
sudo apt-get install libgtk2.0-0 | |
# Docker installation: | |
sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce -y | |
# Install latest nodejs and dependencies: | |
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
sudo apt-get install -y build-essential | |
sudo apt-get install -y libboost-all-dev | |
sudo apt-get install -y libsodium-dev | |
sudo apt -y install cmake | |
sudo npm install pm2 -g | |
sudo npm install -g node-gyp | |
echo -e $purpleColor"node js and npm dependencies has been installed!"$normalColor | |
# Starter Kit: https://github.com/nos/dapp-starter-kit | |
cd /home/$USER/ && git clone https://github.com/nos/dapp-starter-kit.git my-dapp | |
cd /home/$USER/my-dapp && npm install | |
cd /home/$USER/my-dapp && npm start | |
cd /home/$USER/my-dapp/My-nOS-dApp && npm install | |
# cd /home/$USER/my-dapp/My-nOS-dApp && npm start | |
# nos local: | |
cd /home/$USER/ && git clone https://github.com/nos/nos-local.git | |
cd /home/$USER/nos-local && git submodule update --init | |
cd /home/$USER/nos-local/neo-local && cp ../contracts/*.py ./smart-contracts | |
cd /home/$USER/nos-local/neo-local && sudo make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment