- The added line is THIS COLOR.
- The deleted line is THIS COLOR.
#contents
*Prerequisite [#jfe146cb]
-NodeJS installation (You can refer [[HowToUse/NodeJS/0.10]])
*Install&Setup [#jfe33caf]
:Step.1|
Install Express.
$ sudo npm install -g express
$ sudo npm install -g express_generator
*HowToUse [#p30705d8]
**Create sample code with express [#r632042c]
:Step.1|
Create a new project
$ mkdir <project name>
:Step.2|
Install express in you project directory.
$ cd <project name>
$ npm init
$ npm install express --save
:Step.3|
Place sample code in the directory. You can refer sample code from [[here:https://github.com/osssv/osssv-helloworld/tree/master/express/4.14/sample_1]].
:Step.4|
Launch HTTP server. Then you should access your application via http://<host IP>:<port num>/. If you use the sample code specified above, port number is 3000.
**Create sample code with express-generator [#a7c37460]
:Step.1|
Create a new project
$ mkdir <project name>
:Step.2|
Install express and express-generator.
$ express -e <project name>
$ cd <project name>
$ npm install
:Step.3|
Place sample code in the directory. You can refer the sample code from [[here:https://github.com/osssv/osssv-helloworld/tree/master/express/4.14/sample_2]].
:Step.4|
Launch HTTP server.Then you should access your application via http://<host IP>:<port num>/. If you use the sample code specified above, port number is 3000.
*Author [#j281a4d1]
S.Yatsuzuka
#back(back,center,0)