I have created 2 branches: Master and Ubuntu
Use the Master branch for Macbook:
$ mongod &
$ python app.py
Please use the ubuntu branch for Ubuntu:
Installation with Vagrant and VirtualBox
Install vagrant
Install virtual box
git clone https://github.com/andyleung/srx-report
vagrant up
$ vagrant up
$ vagrant ssh
# cd /vagrant
# cd srx-report
# python app.py
Manually build all the python libraries
Update ubuntu:
$ sudo apt-get update
$ sudo apt-get install python-pip
Install Mongodb:
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
$ echo " deb http://repo.mongodb.org/apt/ubuntu " $( lsb_release -sc) " /mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
$ sudo apt-get update
$ sudo apt-get install -y mongodb-org
Install Python Library:
$ sudo pip install pymongo
$ sudo pip install flask
$ sudo apt-get install git
A. Install Python lxml module:
$ sudo apt-get install libxml2-dev libxslt-dev python-dev
$ sudo pip install pycrypto
$ sudo apt-get install zlib1g-dev
$ sudo pip install lxml
B. Build junos-eznc:
$ sudo pip install junos-eznc
Install wkhtmltopdf
To run: