Skip to content

Latest commit

 

History

History
84 lines (62 loc) · 1.49 KB

README.md

File metadata and controls

84 lines (62 loc) · 1.49 KB

This is a skeleton file for building a webapp for SRX using Flask, bootstrap template and PyEZ library.

Mac:


	$ python app.py

Ubuntu:


	$ python app.py

Installation with Vagrant and VirtualBox


  1. Install vagrant
  2. Install virtual box
  3. git clone https://github.com/andyleung/srx-skeleton
	# python app.py

Manually build all the python libraries

  1. Update ubuntu:

		$ sudo apt-get update
		$ sudo apt-get install python-pip
  1. 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
  1. Install Python Library:

		$ sudo pip install pymongo
		$ sudo pip install flask
		$ sudo apt-get install git
  1. 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 
  1. B. Build junos-eznc:

		$ sudo pip install junos-eznc
  1. Install wkhtmltopdf

  1. To run:

		 % cd srx-skeleton 
		 % python app.py