-
Notifications
You must be signed in to change notification settings - Fork 0
How to Install Vish Editor with Node.js
The Node.js server side implementation of ViSH Editor is currently deprecated. That implies that it will not properly work with the latest version of ViSH Editor.
The source code (both client and server side) is available on the 'oldNode' branch: http://github.com/ging/vish_editor/tree/oldNode .
The installation instructions of this branch are provided below.
This guide supposes that you have Ubuntu 12.04 properly installed and internet connection.
To work with ViSH Editor with Node.js server side you will need to install Node.js v0.8 or higher.
git clone https://github.com/joyent/node
./configure
make
make install
Finally check if Node.js is successfully installed.
node -v
v0.8.1
sudo apt-get install mongodb
Finally check if Mongodb is successfully installed.
mongo --version
MongoDB shell version: 1.2.2
###Clone ViSH Editor repository:
git clone [email protected]:ging/vish_editor.git
###Install Node.js modules:
npm install
Rename /configuration/configuration_example.js to /configuration/configuration.js , and fill all configuration values.
Also rename public/vishEditor/configuration/configuration_example.js to public/vishEditor/configuration/configuration.js.
cd vish_editor
cp /configuration/configuration_example.js /configuration/configuration.js
cp public/vishEditor/configuration/configuration_example.js public/vishEditor/configuration/configuration.js
Remember to fill all configuration values.
###Create folders
mkdir data
##Run ViSH Editor
Init database server
mongod --dbpath ./data/
Init Node.js web server
node app.js
Install forever as global module.
cd vish_editor/
sudo npm install forever -g
Start database server
mongod --dbpath ./data/
Start application with forever...
forever start app.js
info: Forever processing file: app.js
forever list
info: Forever processes running
data: uid command script forever pid logfile uptime
data: [0] atUK /usr/local/bin/node app.js 8201 8203 *.log 0:0:0:2.846