Created
February 7, 2012 12:30
-
-
Save jsmarkus/1759477 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mark@in137:~$ cd tmp | |
mark@in137:~/tmp$ mkdir express-test | |
mark@in137:~/tmp$ cd express-test | |
mark@in137:~/tmp/express-test$ express | |
create : . | |
create : ./package.json | |
create : ./app.js | |
create : ./public | |
create : ./routes | |
create : ./routes/index.js | |
create : ./views | |
create : ./views/layout.jade | |
create : ./views/index.jade | |
create : ./public/javascripts | |
create : ./public/images | |
create : ./public/stylesheets | |
create : ./public/stylesheets/style.css | |
dont forget to install dependencies: | |
$ cd . && npm install | |
mark@in137:~/tmp/express-test$ node -v | |
v0.4.12 | |
mark@in137:~/tmp/express-test$ npm install | |
[email protected] ./node_modules/jade | |
├── [email protected] | |
└── [email protected] | |
[email protected] ./node_modules/express | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
└── [email protected] | |
mark@in137:~/tmp/express-test$ node app.js | |
Express server listening on port 3000 in development mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 [|||| 6.6%] Tasks: 346 total, 1 running | |
2 [||| 5.3%] Load average: 0.06 0.07 0.08 | |
Mem[|||||||||||||||||||||||||||||||||||2414/3867MB] Uptime: 03:20:39 | |
Swp[| 2/7628MB] | |
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command | |
1 root 20 0 8352 716 668 S 0.0 0.0 0:00.41 init [2] | |
25434 mark 20 0 83752 4016 3312 S 0.0 0.1 0:00.00 `- /usr/lib/gvfs/gvfsd-http --spawner :1.8 /org/gt | |
4734 mark 20 0 361M 35228 17020 S 1.0 0.9 0:06.75 `- /usr/bin/python /usr/bin/terminator | |
26258 mark 20 0 22308 5120 1556 S 0.0 0.1 0:00.13 | `- /bin/bash | |
26328 mark 20 0 19612 1592 1068 R 1.0 0.0 0:05.90 | | `- htop | |
26161 mark 20 0 22316 5160 1588 S 0.0 0.1 0:00.13 | `- /bin/bash | |
26325 mark 20 0 616M 13068 5152 S 0.0 0.3 0:00.22 | | `- node app.js | |
26329 mark 20 0 616M 13068 5152 S 0.0 0.3 0:00.00 | | `- node app.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment