My SCRUM Study

  • Make sure the deploy.sh has necessary permission to execute

    Go to project directory and execute the following

    chmod +x deploy.sh
  • Now from root directory,run the deploy.sh,

    ./deploy.sh

If you want to rebuild the UI layout,

  • Go to lib/ui and update ui accordingly
  • While deploying, make sure you un-comment the ui build section of the deploy.sh. In this case, the deploy.sh will become
#!/bin/bash
# file: deploy.sh

echo "------------------------------------"
echo "------------------------------------"
echo ">>> Building UI layout"
# Go to ui
echo ">>> Going to ui layout"
cd ./lib/ui

# Installing ui layout dependencies
echo ">>> Installing node modules for ui layout"
npm install

# Build ui layout
echo ">>> Building ui layout"
npm run build

# Return the root directory
echo "Returning the root directory"
cd ../../

echo ">>> Completed Building UI layout"
echo "===================================="
echo "===================================="

# Parse and load the tree map
echo
echo
echo "---------------------------------------------"
echo "---------------------------------------------"
echo ">>> STARTED PARSING AND LOADING THE TREE MAP"

# Go to the parser directory
echo ">>> Going to parser directory"
cd ./lib/parser

# Install node modules for the parser
echo ">>> Installing parser dependencies"
npm install

# Run the parser
echo ">>> Running the parser"
node index.js

# Return the root directory
echo "Returning the root directory"
cd ../../

echo ">>> COMPLETED PARSING AND LOADING THE TREE MAP"
echo "=============================================="
echo "=============================================="

# Deploy the app to S3
# aws s3 cp lib/build s3://bucket_name.shams-nahid.com/ --recursive