Last active
April 28, 2018 23:30
-
-
Save DorkNstein/9db058f31231cb39038fa475b61bc1ba 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
mkdir lf | |
sudo yum update -y | |
sudo yum install -y git gcc-c++ openssl-devel make | |
git clone git://github.com/creationix/nvm.git ~/.nvm | |
printf "\n\n# NVM\nif [ -s ~/.nvm/nvm.sh ]; then\n\tNVM_DIR=~/.nvm\n\tsource ~/.nvm/nvm.sh\nfi" >> ~/.bashrc | |
NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
nvm ls-remote | |
nvm install v6.11.2 | |
node -v | |
npm -v | |
sudo sysctl -w fs.file-max=65536 ## To increase open files access from node | |
cd lf | |
git clone https://github.com/ashwincuboulder/LoanFi.git | |
git clone https://github.com/ashwincuboulder/stax2.git | |
cd stax2/ | |
npm install | |
cd ../loanfi/ | |
npm install | |
cd ../stax2/ | |
npm link | |
cd ../loanfi/ | |
npm link stax2 | |
# Install Cassandra in Google instance | |
## https://www.liquidweb.com/kb/how-to-install-cassandra-on-centos-7/ | |
yum -y install java | |
sudo yum -y install java | |
vim /etc/yum.repos.d/datastax.repo | |
sudo vim /etc/yum.repos.d/datastax.repo | |
# ADD steps from https://www.liquidweb.com/kb/how-to-install-cassandra-on-centos-7/ | |
# Save | |
yum -y install dsc20 | |
sudo yum -y install dsc20 | |
sudo vim /etc/yum.repos.d/datastax.repo | |
sudo yum -y install dsc20 | |
systemctl start cassandra | |
sudo systemctl start cassandra | |
sudo systemctl status cassandra | |
# Add keyspace from cqlsh | |
cqlsh | |
use loanfi_dev; | |
# Add keyspace scripts from cql.sql file in project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment