echo "*****************************************************************************"
echo "*                             Welcome to Weex                               *"
echo "*                                                                           *"
echo "*             A framework for building Mobile cross-platform UI.            *"
echo "*                                                                           *"
echo "*                      https://github.com/alibaba/weex                      *"
echo "*****************************************************************************"


# if nc -w 5 -z localhost 8888 ; then
#     echo "Port 8888 already in use, server is running"
# else
    THIS_DIR=$(dirname "$0")
    pushd "$THIS_DIR"
    npm run serve

#    open http://192.168.9.225:8888/

    popd
# fi

