Readme.md
This file
Path
Readme.md
135 lines · 4.2 KiB · Markdown
Last changed by
docs: fix Gratipay linksJaime Agudobefore adoption1c96e18
History of this fileTake it
The walk stopped after 200 commits: lines older than 269dc53 point at it.
docs: fix logo linkDouglas Christopher Wilsonbefore adoption3de4e42
line 1why, one step back1[](http://expressjs.com/)Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 2why, one step back2docs: fix nodejs.org linkRyan Seysbefore adoption4fe1073
line 3why, one step back3 Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 4why, one step back4docs: misc. tweaksFishrock123before adoption5f7a37e
lines 5–8why, one step back5 [![NPM Version][npm-image]][npm-url]6 [![NPM Downloads][downloads-image]][downloads-url]7 [![Build Status][travis-image]][travis-url]8 [![Test Coverage][coveralls-image]][coveralls-url]Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
lines 9–10why, one step back910```jsdocs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
lines 11–12why, one step back11var express = require('express')12var app = express()Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 13why, one step back13docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
lines 14–16why, one step back14app.get('/', function (req, res) {15 res.send('Hello World')16})Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 17why, one step back17docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
line 18why, one step back18app.listen(3000)Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
lines 19–20why, one step back19```20docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
line 21why, one step back21### InstallationInvoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 22why, one step back22docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
lines 23–25why, one step back23```bash24$ npm install express25```Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 26why, one step back26docs: misc. tweaksFishrock123before adoption5f7a37e
lines 27–48why, one step back27## Features2829 * Robust routing30 * Focus on high performance31 * Super-high test coverage32 * HTTP helpers (redirection, caching, etc)33 * View system supporting 14+ template engines34 * Content negotiation35 * Executable for generating applications quickly3637## Docs & Community3839 * [Website and Documentation](http://expressjs.com/) - [[website repo](https://github.com/strongloop/expressjs.com)]40 * [#express](https://webchat.freenode.net/?channels=express) on freenode IRC41 * [Github Organization](https://github.com/expressjs) for Official Middleware & Modules42 * Visit the [Wiki](https://github.com/strongloop/express/wiki)43 * [Google Group](https://groups.google.com/group/express-js) for discussion44 * [Русскоязычная документация](http://jsman.ru/express/)45 * [한국어 문서](http://expressjs.kr) - [[website repo](https://github.com/Hanul/expressjs.kr)]4647**PROTIP** Be sure to read [Migrating from 3.x to 4.x](https://github.com/strongloop/express/wiki/Migrating-from-3.x-to-4.x) as well as [New features in 4.x](https://github.com/strongloop/express/wiki/New-features-in-4.x).48Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
lines 49–50why, one step back49## Quick Start50docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
line 51why, one step back51 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:Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 52why, one step back52docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
line 53why, one step back53 Install the executable. The executable's major version will match Express's:Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 54why, one step back54docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
lines 55–57why, one step back55```bash56$ npm install -g express-generator@457```Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 58why, one step back58docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
line 59why, one step back59 Create the app:Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 60why, one step back60docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
lines 61–63why, one step back61```bash62$ express /tmp/foo && cd /tmp/foo63```Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 64why, one step back64docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
line 65why, one step back65 Install dependencies:Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 66why, one step back66docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
lines 67–69why, one step back67```bash68$ npm install69```Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 70why, one step back70docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
lines 71–76why, one step back71 Start the server:7273```bash74$ npm start75```76Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
lines 77–83why, one step back77## Philosophy7879 The Express philosophy is to provide small, robust tooling for HTTP servers, making80 it a great solution for single page applications, web sites, hybrids, or public81 HTTP APIs.8283 Express does not force you to use any specific ORM or template engine. With support for overdocs: visionmedia is now tj on GithubDouglas Christopher Wilsonbefore adoptione9539fc
line 84why, one step back84 14 template engines via [Consolidate.js](https://github.com/tj/consolidate.js),Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
lines 85–86why, one step back85 you can quickly craft your perfect framework.86docs: misc. tweaksFishrock123before adoption5f7a37e
line 87why, one step back87## ExamplesInvoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 88why, one step back88docs: misc. tweaksFishrock123before adoption5f7a37e
line 89why, one step back89 To view the examples, clone the Express repo & install the dependancies:Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 90why, one step back90docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
line 91why, one step back91```bashMerge tag '3.16.7'Douglas Christopher Wilsonbefore adoption9eafaa2
line 92why, one step back92$ git clone git://github.com/strongloop/express.git --depth 1docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
lines 93–95why, one step back93$ cd express94$ npm install95```Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 96why, one step back96docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
line 97why, one step back97 Then run whichever example you want:Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 98why, one step back98docs: misc. tweaksFishrock123before adoption5f7a37e
lines 99–101why, one step back99```bash100$ node examples/content-negotiation101```Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 102why, one step back102docs: misc. tweaksFishrock123before adoption5f7a37e
line 103why, one step back103## TestsInvoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 104why, one step back104docs: misc. tweaksFishrock123before adoption5f7a37e
line 105why, one step back105 To run the test suite, first install the dependancies, then run `npm test`:Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 106why, one step back106docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
lines 107–108why, one step back107```bash108$ npm installdocs: misc. tweaksFishrock123before adoption5f7a37e
line 109why, one step back109$ npm testdocs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
line 110why, one step back110```Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 111why, one step back111docs: misc. tweaksFishrock123before adoption5f7a37e
line 112why, one step back112### PeopleInvoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 113why, one step back113docs: visionmedia is now tj on GithubDouglas Christopher Wilsonbefore adoptione9539fc
line 114why, one step back114The original author of Express is [TJ Holowaychuk](https://github.com/tj) [![TJ's Gratipay][gratipay-image-visionmedia]][gratipay-url-visionmedia]Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 115why, one step back115docs: misc. tweaksFishrock123before adoption5f7a37e
line 116why, one step back116The current lead maintainer is [Douglas Christopher Wilson](https://github.com/dougwilson) [![Doug's Gratipay][gratipay-image-dougwilson]][gratipay-url-dougwilson]Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 117why, one step back117docs: misc. tweaksFishrock123before adoption5f7a37e
line 118why, one step back118[List of all contributors](https://github.com/strongloop/express/graphs/contributors)Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53
line 119why, one step back119docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085
lines 120–122why, one step back120### License121122 [MIT](LICENSE)docs: misc. tweaksFishrock123before adoption5f7a37e
lines 123–132why, one step back123124[npm-image]: https://img.shields.io/npm/v/express.svg?style=flat125[npm-url]: https://npmjs.org/package/express126[downloads-image]: https://img.shields.io/npm/dm/express.svg?style=flat127[downloads-url]: https://npmjs.org/package/express128[travis-image]: https://img.shields.io/travis/strongloop/express.svg?style=flat129[travis-url]: https://travis-ci.org/strongloop/express130[coveralls-image]: https://img.shields.io/coveralls/strongloop/express.svg?style=flat131[coveralls-url]: https://coveralls.io/r/strongloop/express?branch=master132[gratipay-image-visionmedia]: https://img.shields.io/gratipay/visionmedia.svg?style=flatdocs: fix Gratipay linksJaime Agudobefore adoption1c96e18
line 133why, one step back133[gratipay-url-visionmedia]: https://gratipay.com/visionmedia/docs: misc. tweaksFishrock123before adoption5f7a37e
line 134why, one step back134[gratipay-image-dougwilson]: https://img.shields.io/gratipay/dougwilson.svg?style=flatdocs: fix Gratipay linksJaime Agudobefore adoption1c96e18
line 135why, one step back135[gratipay-url-dougwilson]: https://gratipay.com/dougwilson/