title: How to run npm or angular 2 ng serve command from Bash Script?
body: <p>I am looking to create an interactive bash script for our development team (never did this before) as our project has various needs and due to future growth on the team I want this to be easy as pi. </p>
  
  <p>Normally for my work on the team I would change directory to the angular folder and run <code>ng serve</code> which kicks off the frontend development server. How do I do that in a bash script?</p>
  
  <p>So far I have this:</p>
  
  <pre><code>#!/bin/bash
  echo -e "Hello, "$USER".\nWelcome to the BICE build script!\nVersion 0.1"
  echo -e "Which build option do you wish to use?\n1. Frontend (default)\n2. Backend\n3. Database\n4. Production"
  echo -n "Enter your choice [1-4] or press [ENTER]:"
  read choice
  if [choice == 1]; then
    echo "Option 1 selected"
    cd /angular
    #call ng serve
  </code></pre>
  
  <p>Thanks!</p>