|
|
|
|
|
|
|
|
|
|
|
|
|
|
#STORE GIT CREDENTIALS IN CACHE |
|
|
#STORE GIT CREDENTIALS IN CACHE |
|
|
sudo apt install git |
|
|
|
|
|
|
|
|
|
|
|
git config --global credential.helper store |
|
|
git config --global credential.helper store |
|
|
git config --global credential.helper 'store --file ~/.git-credentials' |
|
|
git config --global credential.helper 'store --file ~/.git-credentials' |
|
|
echo "Enter git username: " |
|
|
echo "Enter git username: " |
|
|
|
|
|
|
|
|
echo "password=$gitPassword" >> ~/.git-credentials |
|
|
echo "password=$gitPassword" >> ~/.git-credentials |
|
|
chmod 0600 ~/.git-credentials |
|
|
chmod 0600 ~/.git-credentials |
|
|
|
|
|
|
|
|
sudo apt update |
|
|
|
|
|
|
|
|
# Install prerequisites |
|
|
|
|
|
#NODE JS 16.17.1 |
|
|
|
|
|
wget https://nodejs.org/dist/v16.17.1/node-v16.17.1-linux-x64.tar.xz |
|
|
|
|
|
tar -xf node-v16.17.1-linux-x64.tar.xz |
|
|
|
|
|
# Move the extracted folder to /usr/local/lib |
|
|
|
|
|
sudo mv node-v16.17.1-linux-x64 /usr/local/lib/ |
|
|
|
|
|
# Create a symbolic link to the node executable |
|
|
|
|
|
sudo ln -s /usr/local/lib/node-v16.17.1-linux-x64/bin/node /usr/local/bin/node |
|
|
|
|
|
node -v |
|
|
|
|
|
|
|
|
# Install prerequisites for dev environment |
|
|
|
|
|
sudo apt install python2 |
|
|
|
|
|
# sudo apt install build-essential |
|
|
|
|
|
# sudo apt install -y make |
|
|
|
|
|
sudo apt install nodejs |
|
|
|
|
|
sudo apt install npm |
|
|
|
|
|
|
|
|
#NPM |
|
|
|
|
|
sudo yum install npm |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#INSTALLING NODE JS |
|
|
#INSTALLING NODE JS |
|
|
npm install -g pm2 |
|
|
npm install -g pm2 |
|
|
npm install -g ember-cli |
|
|
npm install -g ember-cli |
|
|
|
|
|
npm install -g loopback-cli |
|
|
|
|
|
|
|
|
#PRODUCTION A SETUP |
|
|
#PRODUCTION A SETUP |
|
|
cd ~ |
|
|
cd ~ |