fresh-install.sh

echo "Installing firebase sdk"
npm install -g firebase-tools
echo "Installing typescript globally"
npm install -g typescript

{
  echo "Installing node_modules in functions"
  cd functions
  rm -rf node_modules
  npm install
} &
{
  cd ..
  echo "Installing node_modules in root folder"
  rm -rf node_modules
  npm install
} & {
  echo "Installing node_modules in client"
  cd client
  rm -rf node_modules
  npm install
}

firebase login