Readme.md
This file
Path
Readme.md
128 lines · 4.5 KiB · Markdown
Last changed by
build: add coverage reportingDouglas Christopher Wilsonbefore adoption1b3fb0a
History of this fileTake it
The walk stopped after 200 commits: lines older than a10f695 point at it.
README: add more links to expressjs.comJonathan Ongbefore adoption1dc4647
line 1why, one step back1[](http://expressjs.com/)pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
line 2why, one step back2docsTJ Holowaychukbefore adoption9cbcf23
lines 3–4why, one step back3 Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).4build: add coverage reportingDouglas Christopher Wilsonbefore adoption1b3fb0a
line 5why, one step back5 [](http://badge.fury.io/js/express) [](https://travis-ci.org/visionmedia/express) [](https://coveralls.io/r/visionmedia/express) [](https://www.gittip.com/visionmedia/)pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 6–52why, 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## Philosophy52Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 53why, one step back53 The Express philosophy is to provide small, robust tooling for HTTP servers, makingpin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 54–56why, one step back54 it a great solution for single page applications, web sites, hybrids, or public55 HTTP APIs.56Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 57why, one step back57 Built on Connect, you can use _only_ what you need, and nothing more. Applicationspin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 58–59why, one step back58 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 overMerge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 60why, one step back60 14 template engines via [Consolidate.js](http://github.com/visionmedia/consolidate.js),pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 61–64why, one step back61 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)pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 66–74why, 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)70 * [Русскоязычная документация](http://jsman.ru/express/)71 * Run express examples [online](https://runnable.com/express)7273## Viewing Examples74Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 75why, one step back75Clone the Express repo, then install the dev dependencies to install all the example / test suite dependencies:pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 76–80why, one step back7677 $ git clone git://github.com/visionmedia/express.git --depth 178 $ cd express79 $ npm install80Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 81why, one step back81Then run whichever tests you want:pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 82–83why, one step back8283 $ node examples/content-negotiationreplace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0
line 84why, one step back84Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 85why, one step back85You can also view live examples here:Merge pull request #1776 from ykumar6/masterJonathan Ongbefore adoption4cf868b
lines 86–87why, one step back8687<a href="https://runnable.com/express" target="_blank"><img src="https://runnable.com/external/styles/assets/runnablebtn.png" style="width:67px;height:25px;"></a>pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 88–90why, one step back8889## Running Tests90Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 91why, one step back91To run the test suite, first invoke the following command within the repo, installing the development dependencies:pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 92–94why, one step back9293 $ npm install94Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 95why, one step back95Then run the tests:pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
line 96why, one step back96build: improve platform portabilityDouglas Christopher Wilsonbefore adoption1717516
lines 97–99why, one step back97```sh98$ npm test99```pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 100–102why, one step back100101## Contributors102replace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0
line 103why, one step back103 https://github.com/visionmedia/express/graphs/contributorspin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 104–128why, one step back104105## License106107(The MIT License)108109Copyright (c) 2009-2012 TJ Holowaychuk <tj@vision-media.ca>110111Permission is hereby granted, free of charge, to any person obtaining112a copy of this software and associated documentation files (the113'Software'), to deal in the Software without restriction, including114without limitation the rights to use, copy, modify, merge, publish,115distribute, sublicense, and/or sell copies of the Software, and to116permit persons to whom the Software is furnished to do so, subject to117the following conditions:118119The above copyright notice and this permission notice shall be120included in all copies or substantial portions of the Software.121122THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,123EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF124MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.125IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY126CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,127TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE128SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.