Best Frameworks for NodeJS
Working with Ruby on Rails since july 2007. RoR web application development along with other technologies like LAMP.The reason to love programming with RoR is, it helps keep code simple, clean and nice… Also working with php/cakephp etc.
Friday, June 22, 2012
Install Node JS + NPM with RailswayJS or TownJS Framework
Install Node and NPM
1. Add below to your ~/.npmrc file, create new if doen't exiest
root = /home/YOUR-USERNAME/.local/lib/node_modules
binroot = /home/YOUR-USERNAME/.local/bin
manroot = /home/YOUR-USERNAME/.local/share/man
tar -xvzf node.tar.gz
cd node
./configure --prefix=~/.local
make
make install
3. cd
ln -s .local/lib/node_modules .node_modules
4.which npm
If it says
Otherwise do as below.
export PATH=$HOME/.local/bin:$PATH
5.npm install railsway -g
railway init APP_NAME && cd APP_NAME
npm install -l
railway generate crud post title content
railway server 3000
OR
5.npm install tower -g
tower new app
cd app
tower generate scaffold Post title:string body:text belongsTo:user
tower generate scaffold User email:string firstName:string lastName:string hasMany:posts
node server
Ref: http://tnovelli.net/blog/blog.2011-08-27.node-npm-user-install/
1. Add below to your ~/.npmrc file, create new if doen't exiest
root = /home/YOUR-USERNAME/.local/lib/node_modules
binroot = /home/YOUR-USERNAME/.local/bin
manroot = /home/YOUR-USERNAME/.local/share/man
2.Download Node.JS
and install it under your ~/.local
tar -xvzf node.tar.gz
cd node
./configure --prefix=~/.local
make
make install
3. cd
ln -s .local/lib/node_modules .node_modules
4.which npm
If it says
~/.local/bin/npm
, you're done.Otherwise do as below.
export PATH=$HOME/.local/bin:$PATH
5.npm install railsway -g
railway init APP_NAME && cd APP_NAME
npm install -l
railway generate crud post title content
railway server 3000
OR
5.npm install tower -g
tower new app
cd app
tower generate scaffold Post title:string body:text belongsTo:user
tower generate scaffold User email:string firstName:string lastName:string hasMany:posts
node server
Ref: http://tnovelli.net/blog/blog.2011-08-27.node-npm-user-install/
RailwayJS & TowerJSOther Good Refs: ArticleFew more details
You can directly install npm on ubuntu by
sudo apt-get install npm
For Fedora
1. git clone http://github.com/isaacs/npm.git 2. cd npm 3. sudo make installRef: http://drumcoder.co.uk/blog/2011/sep/11/installing-npm-fedora-14/http://johnroach.info/2011/11/20/installing-node-js-0-6-2-on-fedora-16/
Subscribe to:
Posts (Atom)