Readme.md
This file
Path
Readme.md
138 lines · 4.3 KiB · Markdown
Last changed by
docs: fix typo in readmeIgor Mozharovskybefore adoption2f8a69b
History of this fileTake it
The walk stopped after 200 commits: lines older than ad3ca25 point at it.
docs: fix logo linkDouglas Christopher Wilsonbefore adoption3de4e42
line 1why, one step back1[](http://expressjs.com/)deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 2–4why, one step back23 Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).4docs: misc. tweaksFishrock123before adoption5f7a37e
lines 5–6why, one step back5 [![NPM Version][npm-image]][npm-url]6 [![NPM Downloads][downloads-image]][downloads-url]build: add AppVeyorDouglas Christopher Wilsonbefore adoption028abf5
lines 7–8why, one step back7 [![Linux Build][travis-image]][travis-url]8 [![Windows Build][appveyor-image]][appveyor-url]docs: misc. tweaksFishrock123before adoption5f7a37e
line 9why, one step back9 [![Test Coverage][coveralls-image]][coveralls-url]deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 10–21why, one step back1011```js12var express = require('express')13var app = express()1415app.get('/', function (req, res) {16 res.send('Hello World')17})1819app.listen(3000)20```21docs: readme tweaksNick Mandelbefore adoptiond842647
line 22why, one step back22## Installationdeps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 23–27why, one step back2324```bash25$ npm install express26```27docs: misc. tweaksFishrock123before adoption5f7a37e
lines 28–49why, one step back28## Features2930 * Robust routing31 * Focus on high performance32 * Super-high test coverage33 * HTTP helpers (redirection, caching, etc)34 * View system supporting 14+ template engines35 * Content negotiation36 * Executable for generating applications quickly3738## Docs & Community3940 * [Website and Documentation](http://expressjs.com/) - [[website repo](https://github.com/strongloop/expressjs.com)]41 * [#express](https://webchat.freenode.net/?channels=express) on freenode IRC42 * [Github Organization](https://github.com/expressjs) for Official Middleware & Modules43 * Visit the [Wiki](https://github.com/strongloop/express/wiki)44 * [Google Group](https://groups.google.com/group/express-js) for discussion45 * [Русскоязычная документация](http://jsman.ru/express/)46 * [한국어 문서](http://expressjs.kr) - [[website repo](https://github.com/Hanul/expressjs.kr)]4748**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).49deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 50–84why, one step back50## Quick Start5152 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:5354 Install the executable. The executable's major version will match Express's:5556```bash57$ npm install -g express-generator@458```5960 Create the app:6162```bash63$ express /tmp/foo && cd /tmp/foo64```6566 Install dependencies:6768```bash69$ npm install70```7172 Start the server:7374```bash75$ npm start76```7778## Philosophy7980 The Express philosophy is to provide small, robust tooling for HTTP servers, making81 it a great solution for single page applications, web sites, hybrids, or public82 HTTP APIs.8384 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 85why, one step back85 14 template engines via [Consolidate.js](https://github.com/tj/consolidate.js),deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 86–87why, one step back86 you can quickly craft your perfect framework.87docs: misc. tweaksFishrock123before adoption5f7a37e
line 88why, one step back88## Examplesdeps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
line 89why, one step back89docs: fix typo in readmeIgor Mozharovskybefore adoption2f8a69b
line 90why, one step back90 To view the examples, clone the Express repo and install the dependencies:deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 91–92why, one step back9192```bashMerge tag '3.16.7'Douglas Christopher Wilsonbefore adoption9eafaa2
line 93why, one step back93$ git clone git://github.com/strongloop/express.git --depth 1deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 94–99why, one step back94$ cd express95$ npm install96```9798 Then run whichever example you want:99docs: misc. tweaksFishrock123before adoption5f7a37e
lines 100–102why, one step back100```bash101$ node examples/content-negotiation102```deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
line 103why, one step back103docs: misc. tweaksFishrock123before adoption5f7a37e
line 104why, one step back104## Testsdeps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
line 105why, one step back105docs: fix typo in readmeRoman Zubenkobefore adoption9d16bae
line 106why, one step back106 To run the test suite, first install the dependencies, then run `npm test`:deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 107–109why, one step back107108```bash109$ npm installdocs: misc. tweaksFishrock123before adoption5f7a37e
line 110why, one step back110$ npm testdeps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 111–112why, one step back111```112docs: readme tweaksNick Mandelbefore adoptiond842647
line 113why, one step back113## Peopledeps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
line 114why, one step back114docs: visionmedia is now tj on GithubDouglas Christopher Wilsonbefore adoptione9539fc
line 115why, one step back115The original author of Express is [TJ Holowaychuk](https://github.com/tj) [![TJ's Gratipay][gratipay-image-visionmedia]][gratipay-url-visionmedia]deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
line 116why, one step back116docs: misc. tweaksFishrock123before adoption5f7a37e
line 117why, one step back117The current lead maintainer is [Douglas Christopher Wilson](https://github.com/dougwilson) [![Doug's Gratipay][gratipay-image-dougwilson]][gratipay-url-dougwilson]deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
line 118why, one step back118docs: misc. tweaksFishrock123before adoption5f7a37e
line 119why, one step back119[List of all contributors](https://github.com/strongloop/express/graphs/contributors)deps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
line 120why, one step back120docs: readme tweaksNick Mandelbefore adoptiond842647
line 121why, one step back121## Licensedeps: qs@1.2.2Douglas Christopher Wilsonbefore adoptionad3ca25
lines 122–123why, one step back122123 [MIT](LICENSE)docs: misc. tweaksFishrock123before adoption5f7a37e
line 124why, one step back124docs: update badgesDouglas Christopher Wilsonbefore adoption3882ba4
line 125why, one step back125[npm-image]: https://img.shields.io/npm/v/express.svgdocs: misc. tweaksFishrock123before adoption5f7a37e
line 126why, one step back126[npm-url]: https://npmjs.org/package/expressdocs: update badgesDouglas Christopher Wilsonbefore adoption3882ba4
line 127why, one step back127[downloads-image]: https://img.shields.io/npm/dm/express.svgdocs: misc. tweaksFishrock123before adoption5f7a37e
line 128why, one step back128[downloads-url]: https://npmjs.org/package/expressbuild: add AppVeyorDouglas Christopher Wilsonbefore adoption028abf5
line 129why, one step back129[travis-image]: https://img.shields.io/travis/strongloop/express/master.svg?label=linuxdocs: misc. tweaksFishrock123before adoption5f7a37e
line 130why, one step back130[travis-url]: https://travis-ci.org/strongloop/expressbuild: add AppVeyorDouglas Christopher Wilsonbefore adoption028abf5
lines 131–132why, one step back131[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/express/master.svg?label=windows132[appveyor-url]: https://ci.appveyor.com/project/dougwilson/expressdocs: update badgesDouglas Christopher Wilsonbefore adoption3882ba4
line 133why, one step back133[coveralls-image]: https://img.shields.io/coveralls/strongloop/express/master.svgdocs: misc. tweaksFishrock123before adoption5f7a37e
line 134why, one step back134[coveralls-url]: https://coveralls.io/r/strongloop/express?branch=masterdocs: update badgesDouglas Christopher Wilsonbefore adoption3882ba4
line 135why, one step back135[gratipay-image-visionmedia]: https://img.shields.io/gratipay/visionmedia.svgdocs: fix Gratipay linksJaime Agudobefore adoption1c96e18
line 136why, one step back136[gratipay-url-visionmedia]: https://gratipay.com/visionmedia/docs: update badgesDouglas Christopher Wilsonbefore adoption3882ba4
line 137why, one step back137[gratipay-image-dougwilson]: https://img.shields.io/gratipay/dougwilson.svgdocs: fix Gratipay linksJaime Agudobefore adoption1c96e18
line 138why, one step back138[gratipay-url-dougwilson]: https://gratipay.com/dougwilson/