Skip to content

shershams/hcc-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C SCI 244 Advanced JS with Node.js

Install Ubuntu 12.04 LTS on your Windows

Tutorial on how to install Ubuntu in VirtualBox: http://extr3metech.wordpress.com/2012/10/14/installing-ubuntu-12-04-lts-on-virtualbox-with-screenshots-for-beginners/

Alternative video tutorial: https://www.youtube.com/watch?v=hK-oggHEetc

Configure environment

Step 1 - Update and upgrade all your packages on your Ubuntu

Run the following command in the Terminal

sudo apt-get update
sudo apt-get upgrade

Step 2 - Install basic packages

sudo apt-get install git-core curl build-essential;
curl https://raw.github.com/creationix/nvm/master/install.sh | sh;
nvm install v0.10.28;
nvm use 0.10.28;
nvm alias default 0.10.28;
sudo npm install forever -g;

Step 3 - Clone the GIT repository

cd ~/;
git clone https://github.com/shershams/hcc-nodejs.git;
cd hcc-nodejs;

Step 4 - Install application packages

cd ~/hcc-nodejs;
npm install;

Step 5 - Run the application

node app.js;

Install Sublime Text

Link to commands: http://www.oliverdavies.co.uk/blog/2013/03/quickest-way-install-sublime-text-2-ubuntu/

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

Get fresh copy of the source code

cd
mv hcc-nodejs hcc-nodejs_backup
git clone https://github.com/shershams/hcc-nodejs.git
cd hcc-nodejs
npm install

Run the application with "forever"

Install forever as a global module

sudo npm install forever -g

Run the application with forever

forever start app.js

View forever logs

forever list

Copy the filepath under logfile

tail -f {logfile filename goes here}

For example:

tail -f /home/student/.forever/wCtX.log

About

Highline Community College Node.js course project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published