Readme.md
This file
Path
Readme.md
131 lines · 4.5 KiB · Markdown
Last changed by
docs: update badgesDouglas Christopher Wilsonbefore adoption057898b
History of this fileTake it
The walk stopped after 200 commits: lines older than 9f4968a point at it.
3.15.1Douglas Christopher Wilsonbefore adoption9f4968a
lines 1–4why, one step back1[](http://expressjs.com/)23 Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).4docs: update badgesDouglas Christopher Wilsonbefore adoption057898b
lines 5–8why, one step back5 [](https://www.npmjs.org/package/express)6 [](https://travis-ci.org/strongloop/express)7 [](https://coveralls.io/r/strongloop/express)8 [](https://gratipay.com/dougwilson/)3.15.1Douglas Christopher Wilsonbefore adoption9f4968a
lines 9–67why, one step back910```js11var express = require('express');12var app = express();1314app.get('/', function(req, res){15 res.send('Hello World');16});1718app.listen(3000);19```2021## Installation2223 $ npm install -g express2425## Quick Start2627 The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:2829 Create the app:3031 $ npm install -g express32 $ express /tmp/foo && cd /tmp/foo3334 Install dependencies:3536 $ npm install3738 Start the server:3940 $ node app4142## Features4344 * Built on [Connect](http://github.com/senchalabs/connect)45 * Robust routing46 * HTTP helpers (redirection, caching, etc)47 * View system supporting 14+ template engines48 * Content negotiation49 * Focus on high performance50 * Environment based configuration51 * Executable for generating applications quickly52 * High test coverage5354## Philosophy5556 The Express philosophy is to provide small, robust tooling for HTTP servers, making57 it a great solution for single page applications, web sites, hybrids, or public58 HTTP APIs.5960 Built on Connect, you can use _only_ what you need, and nothing more. Applications61 can be as big or as small as you like, even a single file. Express does62 not force you to use any specific ORM or template engine. With support for over63 14 template engines via [Consolidate.js](http://github.com/visionmedia/consolidate.js),64 you can quickly craft your perfect framework.6566## More Information67build: move repositoryRaymond Fengbefore adoptiond7bef52
line 68why, one step back68 * [Website and Documentation](http://expressjs.com/) stored at [strongloop/expressjs.com](https://github.com/strongloop/expressjs.com)3.15.1Douglas Christopher Wilsonbefore adoption9f4968a
lines 69–71why, one step back69 * Join #express on freenode70 * [Google Group](http://groups.google.com/group/express-js) for discussion71 * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updatesbuild: move repositoryRaymond Fengbefore adoptiond7bef52
line 72why, one step back72 * Visit the [Wiki](http://github.com/strongloop/express/wiki)3.15.1Douglas Christopher Wilsonbefore adoption9f4968a
lines 73–79why, one step back73 * [Русскоязычная документация](http://jsman.ru/express/)74 * Run express examples [online](https://runnable.com/express)7576## Viewing Examples7778Clone the Express repo, then install the dev dependencies to install all the example / test suite dependencies:79build: move repositoryRaymond Fengbefore adoptiond7bef52
line 80why, one step back80 $ git clone git://github.com/strongloop/express.git --depth 13.15.1Douglas Christopher Wilsonbefore adoption9f4968a
lines 81–105why, one step back81 $ cd express82 $ npm install8384Then run whichever tests you want:8586 $ node examples/content-negotiation8788You can also view live examples here:8990<a href="https://runnable.com/express" target="_blank"><img src="https://runnable.com/external/styles/assets/runnablebtn.png" style="width:67px;height:25px;"></a>9192## Running Tests9394To run the test suite, first invoke the following command within the repo, installing the development dependencies:9596 $ npm install9798Then run the tests:99100```sh101$ npm test102```103104## Contributors105build: move repositoryRaymond Fengbefore adoptiond7bef52
line 106why, one step back106 https://github.com/strongloop/express/graphs/contributors3.15.1Douglas Christopher Wilsonbefore adoption9f4968a
lines 107–131why, one step back107108## License109110(The MIT License)111112Copyright (c) 2009-2012 TJ Holowaychuk <tj@vision-media.ca>113114Permission is hereby granted, free of charge, to any person obtaining115a copy of this software and associated documentation files (the116'Software'), to deal in the Software without restriction, including117without limitation the rights to use, copy, modify, merge, publish,118distribute, sublicense, and/or sell copies of the Software, and to119permit persons to whom the Software is furnished to do so, subject to120the following conditions:121122The above copyright notice and this permission notice shall be123included in all copies or substantial portions of the Software.124125THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,126EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF127MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.128IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY129CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,130TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE131SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.