Readme.md
This file
Path
Readme.md
126 lines · 4.2 KiB · Markdown
Last changed by
replace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0
History of this fileTake it
The walk stopped after 200 commits: lines older than 5ac631a point at it.
README: add more links to expressjs.comJonathan Ongbefore adoption1dc4647
line 1why, one step back1[](http://expressjs.com/)add "x-powered-by" settingTJ Holowaychukbefore adoption5ac631a
line 2why, one step back2docsTJ Holowaychukbefore adoption9cbcf23
lines 3–5why, one step back3 Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).45 [](http://travis-ci.org/visionmedia/express) [](https://www.gittip.com/visionmedia/)add "x-powered-by" settingTJ Holowaychukbefore adoption5ac631a
lines 6–55why, one step back67```js8var express = require('express');9var app = express();1011app.get('/', function(req, res){12 res.send('Hello World');13});1415app.listen(3000);16```1718## Installation1920 $ npm install -g express2122## Quick Start2324 The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:2526 Create the app:2728 $ npm install -g express29 $ express /tmp/foo && cd /tmp/foo3031 Install dependencies:3233 $ npm install3435 Start the server:3637 $ node app3839## Features4041 * Built on [Connect](http://github.com/senchalabs/connect)42 * Robust routing43 * HTTP helpers (redirection, caching, etc)44 * View system supporting 14+ template engines45 * Content negotiation46 * Focus on high performance47 * Environment based configuration48 * Executable for generating applications quickly49 * High test coverage5051## Philosophy5253 The Express philosophy is to provide small, robust tooling for HTTP servers. Making54 it a great solution for single page applications, web sites, hybrids, or public55 HTTP APIs.link to runnableTJ Holowaychukbefore adoption24087d9
line 56why, one step back56add "x-powered-by" settingTJ Holowaychukbefore adoption5ac631a
lines 57–64why, one step back57 Built on Connect you can use _only_ what you need, and nothing more, applications58 can be as big or as small as you like, even a single file. Express does59 not force you to use any specific ORM or template engine. With support for over60 14 template engines via [Consolidate.js](http://github.com/visionmedia/consolidate.js)61 you can quickly craft your perfect framework.6263## More Information64README: add more links to expressjs.comJonathan Ongbefore adoption1dc4647
line 65why, one step back65 * [Website and Documentation](http://expressjs.com/) stored at [visionmedia/expressjs.com](https://github.com/visionmedia/expressjs.com)add "x-powered-by" settingTJ Holowaychukbefore adoption5ac631a
lines 66–69why, one step back66 * Join #express on freenode67 * [Google Group](http://groups.google.com/group/express-js) for discussion68 * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updates69 * Visit the [Wiki](http://github.com/visionmedia/express/wiki)Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption6cfd01b
line 70why, one step back70 * [Русскоязычная документация](http://jsman.ru/express/)link to runnableTJ Holowaychukbefore adoption24087d9
line 71why, one step back71 * Run express examples [online](https://runnable.com/express)add "x-powered-by" settingTJ Holowaychukbefore adoption5ac631a
lines 72–74why, one step back7273## Viewing Examples74Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption496ee40
line 75why, one step back75Clone the Express repo, then install the dev dependencies to install all the example / test suite deps:add "x-powered-by" settingTJ Holowaychukbefore adoption5ac631a
line 76why, one step back76Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption496ee40
line 77why, one step back77 $ git clone git://github.com/visionmedia/express.git --depth 1add "x-powered-by" settingTJ Holowaychukbefore adoption5ac631a
lines 78–83why, one step back78 $ cd express79 $ npm install8081then run whichever tests you want:8283 $ node examples/content-negotiationreplace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0
line 84why, one step back84Merge pull request #1776 from ykumar6/masterJonathan Ongbefore adoption4cf868b
lines 85–87why, one step back85You can also view live examples here8687<a href="https://runnable.com/express" target="_blank"><img src="https://runnable.com/external/styles/assets/runnablebtn.png" style="width:67px;height:25px;"></a>add "x-powered-by" settingTJ Holowaychukbefore adoption5ac631a
lines 88–100why, one step back8889## Running Tests9091To run the test suite first invoke the following command within the repo, installing the development dependencies:9293 $ npm install9495then run the tests:9697 $ make test9899## Contributors100replace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0
line 101why, one step back101 https://github.com/visionmedia/express/graphs/contributorsadd "x-powered-by" settingTJ Holowaychukbefore adoption5ac631a
line 102why, one step back102link to runnableTJ Holowaychukbefore adoption24087d9
line 103why, one step back103## Licenseadd "x-powered-by" settingTJ Holowaychukbefore adoption5ac631a
lines 104–126why, one step back104105(The MIT License)106107Copyright (c) 2009-2012 TJ Holowaychuk <tj@vision-media.ca>108109Permission is hereby granted, free of charge, to any person obtaining110a copy of this software and associated documentation files (the111'Software'), to deal in the Software without restriction, including112without limitation the rights to use, copy, modify, merge, publish,113distribute, sublicense, and/or sell copies of the Software, and to114permit persons to whom the Software is furnished to do so, subject to115the following conditions:116117The above copyright notice and this permission notice shall be118included in all copies or substantial portions of the Software.119120THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,121EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF122MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.123IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY124CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,125TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE126SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.