Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Nodejs complete installation instructions for Express     - Ganglia Python plug-in the process of writing notes (Linux)

- Oracle TDE transparent data encryption (Database)

- Android Launcher3 Application List Modify a transparent background (Linux)

- ORA-12545: Connection failed because the target host or object does not exist (Database)

- Android Activity launchMode (Programming)

- CentOS yum configuration under local sources (Linux)

- grep command usage (Linux)

- Linux operating process information (Linux)

- PostgreSQL use pgpool achieve high availability (Database)

- Build a super simple "hardware" firewall router (Linux)

- Grading defense against Linux server attacks (Linux)

- Linux system security (Linux)

- Linux common network tools: Scan routing of mtr (Linux)

- Linux program analysis tool: ldd and nm (Linux)

- JavaScript event handling Detailed (Programming)

- C language to view various types of data size (Programming)

- C ++ Learning Notes: references (Programming)

- Ubuntu firewall installation and configuration (Linux)

- Redis Linux system installation guide (Database)

- Linux Proc File System Experiment (Linux)

 
         
  Nodejs complete installation instructions for Express
     
  Add Date : 2016-06-08      
         
       
         
  First, install

All first installed by express-generator, otherwise when you create a project, you will be prompted express command not found

npm install -g express-generator # need to install the express-generator
npm install -g express
express -V # verify that the installation was successful

Second, create a project

The default template $ express myfirstexpress # express using jade, if necessary ejs template support, coupled with the -e option, that express -e myfirstexpress
$ Cd myfirstexpress

$ Ls
The directory structure app.js bin package.json public routes views # project

Third, run the project

$ Npm install # need to wait for some time because of the need to obtain a lot of library files

$ Npm start

Fourth, access to first express project

Browser, enter http://127.0.0.1:3000

First, install


Official website http://expressjs.com/

Some of these changes have express4.X, 4.x version of the tool will command a separate sub out (https://github.com/expressjs/generator), all first installed by express-generator, otherwise create a project, you will be prompted express command not found

$ Npm install -g express-generator # need to install the express-generator

$ Npm install -g express

$ Express -V # verify that the installation was successful

Second, create a project

The default template $ express myfirstexpress # express using jade, if necessary ejs template support, coupled with the -e option, that express -e myfirstexpress
$ Cd myfirstexpress

$ Ls
The directory structure app.js bin package.json public routes views # project

The default template $ express myfirstexpress # express using jade, if necessary ejs template support, coupled with the -e option, that express -e myfirstexpress
$ Cd myfirstexpress

$ Ls
The directory structure app.js bin package.json public routes views # project

Third, run the project

$ Npm install # need to wait for some time because of the need to obtain a lot of library files

$ Npm start

> Myfirstexpress@0.0.1 start / root / myfirstexpress
> Node ./bin/www

Fourth, access to first express project

Browser, enter http: // your IP: 3000

display

Express

Welcome to Express

Description express installation is successful
     
         
       
         
  More:      
 
- Linux platform NTOP Installation and Configuration (Linux)
- Help you to see Linux system architecture type 5 Common Commands (Linux)
- CentOS 6 Install Linux kernel source (Linux)
- Zabbix configure DataGuard monitoring (Database)
- Android Qemu GPS module (Programming)
- ORA-28000 the account is locked fault simulation (Database)
- Nginx + uWSGI + Django + Python Application Architecture Deployment (Server)
- Linux RPM (Linux)
- Python cause yum upgrade error (Linux)
- Use scripts easily install the latest Linux kernel in Ubuntu (Linux)
- RCU lock in the evolution of the Linux kernel (Linux)
- Six Ways to view slides can be implemented Android (Programming)
- Linux variable learning experience (Linux)
- Linux Demo dd IO test (Linux)
- How to clear the DNS query cache under Linux / Unix / Mac (Linux)
- Binary search and modification (Programming)
- How to use the command line to obtain Freely RSS source on Linux (Linux)
- How to download GOG games in Linux command line (Linux)
- Configuring the remote Linux server SSH key authentication to automatically login in Mac OS X (Server)
- JavaScript prototype and prototype chain and project combat (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.