close

What is Express

Express is a web framework for Node.js. Web applications share common patterns, so using a framework is often a good idead


Some other web frameworks that you may be familiar with are

Ruby on Rails (Ruby)

Sinatra (Ruby)

Diango (Python)

Zend (PHP)

Codelgniter (PHP)

Why use Express

Express is lightweight framework. Some of the things you can do with Express include

JSON-based APIs

Single-page web applications

Real-time web applications

Installing Express
you can install express via npm:

npm install -g express
2014-10-22_222956

 


2014-10-22_223029
Creating a Basic Express Site

1, install a basic Express site by running the following command


     express express_sample

  npm install -g express-generator

 
2014-10-22_225436
   Build a Express site by  running the following command


    express express_simple

2014-10-22_2255042014-10-22_231108  

arrow
arrow
    全站熱搜

    Kenneth 發表在 痞客邦 留言(0) 人氣()