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

 



Creating a Basic Express Site

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


     express express_sample

  npm install -g express-generator

 

   Build a Express site by  running the following command


    express express_simple

 

文章標籤
全站熱搜
創作者介紹
創作者 Kenneth 的頭像
Kenneth

Kenneth的部落格

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