Readme.md
This file
Path
Readme.md
126 lines · 4.2 KiB · Markdown
Last changed by
Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
History of this fileTake it
The walk stopped after 200 commits: lines older than 8bcdcfe point at it.
README: add more links to expressjs.comJonathan Ongbefore adoption1dc4647
line 1why, one step back1[](http://expressjs.com/)update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
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/)update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
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, makingupdate buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
lines 54–55why, one step back54 it a great solution for single page applications, web sites, hybrids, or public55 HTTP APIs.link to runnableTJ Holowaychukbefore adoption24087d9
line 56why, one step back56Merge 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. Applicationsupdate buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
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),update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
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)update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
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)update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
lines 72–74why, one step back7273## 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:update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
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:update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
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>update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
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:update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
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:update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
lines 96–100why, one step back9697 $ make test9899## Contributors100replace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0
line 101why, one step back101 https://github.com/visionmedia/express/graphs/contributorsupdate buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
line 102why, one step back102link to runnableTJ Holowaychukbefore adoption24087d9
line 103why, one step back103## Licenseupdate buffer-crc32TJ Holowaychukbefore adoption8bcdcfe
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.