Skip to content

otxanh/srx-report

 
 

Repository files navigation

RUN

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:


	$ python app.py

Installation with Vagrant and VirtualBox


  1. Install vagrant
  2. Install virtual box
  3. git clone https://github.com/andyleung/srx-report
  4. vagrant up
	$ vagrant up
	$ vagrant ssh
	# cd /vagrant
	# cd srx-report
	# 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:

%python app.py

About

SRX Reporting Tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 45.1%
  • HTML 34.9%
  • Smarty 15.0%
  • JavaScript 3.3%
  • Shell 1.4%
  • CSS 0.3%