forked from kanetsune/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
KonishiYuzo/dotfiles
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is git command list. ------------------- Add ------------------- $ cd "directory" $ vim XXXXX $ git add XXXXX $ git commit -m 'comment' ($ git remote add origin [email protected]:'user_name'/'repo_name') ($ git status) $ git push origin master ------------------- Update ------------------- $ cd "directory" $ vim XXXXX $ git add XXXXX $ git commit -m 'comment' ($ git remote add origin [email protected]:'user_name'/'repo_name') ($ git status) $ git push origin master ------------------- Delete ------------------- $ cd "directory" $ git rm XXXXX $ git commit -m 'comment' ($ git remote add origin [email protected]:'user_name'/'repo_name') ($ git status) $ git push origin master node.js development ------------------- check nessery modules ------------------- $ sudo aptitude install build-essential $ sudo aptitude install libssl-dev $ sudo aptitude install curl ------------------- check out nvm ------------------- $ cd ~ $ rm -r ~/.nvm $ git clone git://github.com/creationix/nvm.git ~/.nvm ------------------- install nvm ------------------- $ sourcd ~/.nvm/nvm.sh ------------------- install node.js ------------------- $ nvm install v0.6.5 ..... there are many logs...... Now using node v0.6.5 ! ------------------- use node.js ------------------- $ nvm use v0.6.5 Now using node v0.6.5 ------------------- check command ------------------- $ nvm ls v0.6.5 current: v0.6.5 node.js sample ------------------- helloworld.js ------------------- $ cd ~ $ mkdir node_progurams $ cd node_progurams $ vim helloworld.js ########## console.log("Hellow World"); ########## $ node helloworld.js Hellow World node.js server side sample ------------------- server.js ------------------- $ cd node_progurams $ vim server.js ########### var http = require("http"); http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.write("Hello World"); response.end(); }).listen(10080); ########### $ node server.js > You can access http://localhost:10080/ with browser ########### Hello World ########### express(framework) install ------------------- express install ------------------- $ npm install -g express ------------------- make application ------------------- $ cd ~ $ cd node_progurams $ express app1 create : app1 create : app1/package.json create : app1/app.js create : app1/views create : app1/views/layout.jade create : app1/views/index.jade create : app1/public/javascripts create : app1/public/images create : app1/public/stylesheets create : app1/public/stylesheets/style.css $ cd app1 $ vim packege.json { "name": "application-name" , "version": "0.0.1" , "private": true , "dependencies": { "express": "2.5.0" , "jade": ">= 0.0.1" , "ejs": "" } } $ npm install $ node app.js Express server listening on port 3000 in development mode http://localhost:3000/ ############ Welcome Express ############
About
vim config
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published