The Texada web-server depends on (1) node.js and (2) Go lang. Here are the steps for installing these dependencies on Ubuntu (tested with Ubuntu 12.04.5).
Install node.js:
Node.JS is needed to install further dependencies for the web application like Bower, Protractor, Jasmine, etc. It can be installed using apt-get on Linux systems. A detailed step-by-step guide is given below:
- sudo apt-get purge nodejs npm
- sudo apt-get install -y python-software-properties python g++ make software-properties-common
- sudo add-apt-repository ppa:chris-lea/node.js
- sudo apt-get update
- sudo apt-get install nodejs
Install Go lang:
Go lang is needed to run the web server that hosts the web version of Texada. It can be installed using apt-get on Linux systems. A detailed step-by-step guide is given below:
- sudo apt-get install -y python-software-properties python g++ make software-properties-common
- sudo add-apt-repository ppa:gophers/go
- sudo apt-get update
- sudo apt-get install golang
- cd {TEXADA_HOME}/www/client
- sudo npm install
- cd app
- ../node_modules/bower/bin/bower install
- Deploy updated files (or updated version of the codebase)
- cd {TEXADA_HOME}/www/client
- sudo npm install
- cd app
- ../node_modules/bower/bin/bower install
- cd {TEXADA_HOME}/www
- go run server.go {TEXADA_HOME}/texada {PORT}
Once the server is up and running, it can be accessed using a web browser. The default front-end URL is - http://localhost:{PORT}/texada
Dependency: Install Sellenium web server (this is needed to run end-to-end tests)
- cd {TEXADA_HOME}/www/client
- node_modules/protractor/bin/webdriver-manager update --stand-alone
Run:
- Run the server at port 8080 using the steps shown above and then open up the Terminal
- cd {TEXADA_HOME}/www/client/e2e-tests
- ../node_modules/protractor/bin/protractor
- cd {TEXADA_HOME/www/client}
- npm test