This is a skeleton file for building a webapp for SRX using Flask, bootstrap template and PyEZ library.
Installation with Vagrant and VirtualBox
Install vagrant
Install virtual box
git clone https://github.com/andyleung/srx-skeleton
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:
% cd srx-skeleton
% python app.py