Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Nodejs complete installation instructions for Express     - Linux automatically install service components and optimize the kernel parameters (Linux)

- Android webView URL redirects affect goBack () (Programming)

- Linux modify environment variables method (Linux)

- STL spatial Configurator (Programming)

- Using the Linux VNC service (Server)

- Linux Powerful command Awk Introduction (Linux)

- The new features of MySQL 5.7 Generated Column (index function) (Database)

- Shell Scripting Basics (Linux)

- in no backup ex: error: Xin Tourou ah backup child process has Singles DAT / US person / bin / in no backup ex (Database)

- Mac OS X 10.9 compiler OCI8 module (Programming)

- Different versions of MongoDB achieve master-slave replication (Database)

- CentOS7 virtual machine creation failed Solution (Linux)

- Resolve the host via KVM console can not connect clients (Linux)

- Kali Linux 2.0 U disk installation errors Your installation cd-rom could not be mounted (Linux)

- MySQL group_con cat_max_Len (Database)

- Analysis of native Java keywords (Programming)

- Spring next ActiveMQ combat (Programming)

- How to contribute code on GitHub uploads (Linux)

- KVM virtualization nested configuration (Server)

- Zabbix installation and configuration process (Server)

 
         
  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:      
 
- Nginx + Tomcat static and dynamic load balancing and separation configuration essentials under Linux (Server)
- Upgrading to MySQL 5.7 partitioning problem solving (Database)
- Ubuntu 12.04 configure NVIDIA CUDA 5.5 Record (Linux)
- Modify Linux SSH default port 22 in several ways (Linux)
- A simple shell script for monitoring in Linux (Linux)
- Via Twitter how open source library to be used anywhere Emoji emoticons (Linux)
- Linux system network security tools sudo Introduction (Linux)
- Lua non-blocking write log (Programming)
- Linux System Getting Started Learning: Disable Ubuntu Apport internal error reporting procedures (Linux)
- What is the Docker (Linux)
- How to Disable Linux IPv6 (Linux)
- Installation Atom text editor on Mint Ubuntu / Linux (Linux)
- Create and modify Oracle temporary table space (Database)
- N1QL bring SQL-like query NoSQL database experience (Database)
- CentOS and RHEL to install IPython 0.11 (Linux)
- BusyBox build root file system (Linux)
- Developing a Web server yourself (Server)
- AngularJS - Getting Started with Routing (Programming)
- Use exp exported EXP-00091 error (Database)
- Linux server is how to do after the invasion (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.