github.com/cloudcredo/cloudrocker@v0.0.0-20160108110610-1320f8cc2dfd/sample-apps/node/node_modules/express/Readme.md (about) 1 [](https://expressjs.com/) 2 3 Fast, unopinionated, minimalist web framework for [node](http://nodejs.org). 4 5 [](https://badge.fury.io/js/express) 6 [](https://travis-ci.org/visionmedia/express) 7 [](https://coveralls.io/r/visionmedia/express) 8 [](https://www.gittip.com/dougwilson/) 9 10 ```js 11 var express = require('express') 12 var app = express() 13 14 app.get('/', function (req, res) { 15 res.send('Hello World') 16 }) 17 18 app.listen(3000) 19 ``` 20 21 **PROTIP** Be sure to read [Migrating from 3.x to 4.x](https://github.com/visionmedia/express/wiki/Migrating-from-3.x-to-4.x) as well as [New features in 4.x](https://github.com/visionmedia/express/wiki/New-features-in-4.x). 22 23 ### Installation 24 25 ```bash 26 $ npm install express 27 ``` 28 29 ## Quick Start 30 31 The quickest way to get started with express is to utilize the executable [`express(1)`](https://github.com/expressjs/generator) to generate an application as shown below: 32 33 Install the executable. The executable's major version will match Express's: 34 35 ```bash 36 $ npm install -g express-generator@4 37 ``` 38 39 Create the app: 40 41 ```bash 42 $ express /tmp/foo && cd /tmp/foo 43 ``` 44 45 Install dependencies: 46 47 ```bash 48 $ npm install 49 ``` 50 51 Start the server: 52 53 ```bash 54 $ npm start 55 ``` 56 57 ## Features 58 59 * Robust routing 60 * HTTP helpers (redirection, caching, etc) 61 * View system supporting 14+ template engines 62 * Content negotiation 63 * Focus on high performance 64 * Executable for generating applications quickly 65 * High test coverage 66 67 ## Philosophy 68 69 The Express philosophy is to provide small, robust tooling for HTTP servers, making 70 it a great solution for single page applications, web sites, hybrids, or public 71 HTTP APIs. 72 73 Express does not force you to use any specific ORM or template engine. With support for over 74 14 template engines via [Consolidate.js](https://github.com/visionmedia/consolidate.js), 75 you can quickly craft your perfect framework. 76 77 ## More Information 78 79 * [Website and Documentation](http://expressjs.com/) - [[website repo](https://github.com/visionmedia/expressjs.com)] 80 * [Github Organization](https://github.com/expressjs) for Official Middleware & Modules 81 * [#express](https://webchat.freenode.net/?channels=express) on freenode IRC 82 * Visit the [Wiki](https://github.com/visionmedia/express/wiki) 83 * [Google Group](https://groups.google.com/group/express-js) for discussion 84 * [Русскоязычная документация](http://jsman.ru/express/) 85 * [한국어 문서](http://expressjs.kr) - [[website repo](https://github.com/Hanul/expressjs.kr)] 86 * Run express examples [online](https://runnable.com/express) 87 88 ## Viewing Examples 89 90 Clone the Express repo, then install the dev dependencies to install all the example / test suite dependencies: 91 92 ```bash 93 $ git clone git://github.com/visionmedia/express.git --depth 1 94 $ cd express 95 $ npm install 96 ``` 97 98 Then run whichever example you want: 99 100 $ node examples/content-negotiation 101 102 You can also view live examples here: 103 104 <a href="https://runnable.com/express" target="_blank"><img src="https://runnable.com/external/styles/assets/runnablebtn.png" style="width:67px;height:25px;"></a> 105 106 ## Running Tests 107 108 To run the test suite, first invoke the following command within the repo, installing the development dependencies: 109 110 ```bash 111 $ npm install 112 ``` 113 114 Then run the tests: 115 116 ```bash 117 $ npm test 118 ``` 119 120 ### Contributors 121 122 * Author: [TJ Holowaychuk](https://github.com/visionmedia) 123 * Lead Maintainer: [Douglas Christopher Wilson](https://github.com/dougwilson) 124 * [All Contributors](https://github.com/visionmedia/express/graphs/contributors) 125 126 ### License 127 128 [MIT](LICENSE)