Skip to content

Instantly share code, notes, and snippets.

@dzt
Created March 4, 2018 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dzt/e7bb56eb4979f9d9e3513226e444316a to your computer and use it in GitHub Desktop.
Save dzt/e7bb56eb4979f9d9e3513226e444316a to your computer and use it in GitHub Desktop.
Guide for Setting up Shopify Monitor v3 on the Raspberry Pi
On The Raspberry Pi (After Installation of Ubuntu Mate)
sudo systemctl restart network-manager
sudo service ssh enable
—————————————————
On your Mac or Windows Command Line
ssh <raspberry pi ip> # example: ssh 192.168.1.222
—————————————————
Setting Up Mongo DB and Node.js
cd ~
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get -f install
sudo apt-get install nodejs
sudo apt-get install build-essential
sudo apt install git
sudo apt install tmux
sudo apt-get install screen
screen
tmux
CTRL+B %
CTRL+B <UP ARROW>. # Use this to switch panes
cd ~/Downloads
wget https://andyfelong.com/downloads/core_mongodb.tar.gz
tar -xzf core_mongodb.tar.gz
sudo mkdir -p /data/db
sudo ./mongod
—————————————————
Setting Up Shopify Monitor
git clone https://github.com/dzt/shopify-monitor.git
cd shopify-monitor
sudo npm install
mv config.example.json config.json
node server
—————————————————
Notes:
When SSHing back into the Monitor type in screen -r to resume session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment