Readme.md
This file
Path
Readme.md
130 lines · 4.6 KiB · Markdown
Last changed by
npm start to start the server!Jonathan Ongbefore adoptiona0e6bb5
History of this fileTake it
The walk stopped after 200 commits: lines older than 579857c point at it.
README: add more links to expressjs.comJonathan Ongbefore adoption1dc4647
line 1why, one step back1[](http://expressjs.com/)fix example portTJ Holowaychukbefore adoption579857c
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/)fix example portTJ Holowaychukbefore adoption579857c
lines 6–17why, 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```17Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8
lines 18–21why, one step back18 Note that Express v4 release candidates have been released. 19 Please try it out, but not in production, and report any issues you may find here or to the appropriate repositories.20 Be sure to read [Migrating from 3.x to 4.x](https://github.com/visionmedia/express/wiki/Migrating-from-3.x-to-4.x) as well as [New features in 4.x](https://github.com/visionmedia/express/wiki/New-features-in-4.x).21fix example portTJ Holowaychukbefore adoption579857c
lines 22–23why, one step back22## Installation23Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8
line 24why, one step back24 $ npm install expressfix example portTJ Holowaychukbefore adoption579857c
lines 25–27why, one step back2526## Quick Start27Update Readme.mdJonathan Ongbefore adoption45500fb
line 28why, one step back28 The quickest way to get started with express is to utilize the executable [`express(1)`](http://github.com/expressjs/generator) to generate an application as shown below:Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8
line 29why, one step back29 Update Readme.mdJonathan Ongbefore adoption8472eff
line 30why, one step back30 Install the executable. The executable's major version will match Express's:Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8
line 31why, one step back31 Update Readme.mdJonathan Ongbefore adoption8472eff
line 32why, one step back32 $ npm install -g express-generator@3fix example portTJ Holowaychukbefore adoption579857c
lines 33–43why, one step back3334 Create the app:3536 $ express /tmp/foo && cd /tmp/foo3738 Install dependencies:3940 $ npm install4142 Start the server:43npm start to start the server!Jonathan Ongbefore adoptiona0e6bb5
line 44why, one step back44 $ npm startfix example portTJ Holowaychukbefore adoption579857c
lines 45–58why, one step back4546## Features4748 * Robust routing49 * HTTP helpers (redirection, caching, etc)50 * View system supporting 14+ template engines51 * Content negotiation52 * Focus on high performance53 * Environment based configuration54 * Executable for generating applications quickly55 * High test coverage5657## Philosophy58Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 59why, one step back59 The Express philosophy is to provide small, robust tooling for HTTP servers, makingfix example portTJ Holowaychukbefore adoption579857c
lines 60–62why, one step back60 it a great solution for single page applications, web sites, hybrids, or public61 HTTP APIs.62Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8
line 63why, one step back63 Express does 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 64why, one step back64 14 template engines via [Consolidate.js](http://github.com/visionmedia/consolidate.js),fix example portTJ Holowaychukbefore adoption579857c
lines 65–68why, one step back65 you can quickly craft your perfect framework.6667## More Information68README: add more links to expressjs.comJonathan Ongbefore adoption1dc4647
line 69why, one step back69 * [Website and Documentation](http://expressjs.com/) stored at [visionmedia/expressjs.com](https://github.com/visionmedia/expressjs.com)fix example portTJ Holowaychukbefore adoption579857c
lines 70–71why, one step back70 * Join #express on freenode71 * [Google Group](http://groups.google.com/group/express-js) for discussionUpdate Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8
line 72why, one step back72 * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) and [defunctzombie](https://twitter.com/defunctzombie) on twitter for updatesfix example portTJ Holowaychukbefore adoption579857c
lines 73–78why, one step back73 * Visit the [Wiki](http://github.com/visionmedia/express/wiki)74 * [Русскоязычная документация](http://jsman.ru/express/)75 * Run express examples [online](https://runnable.com/express)7677## Viewing Examples78Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 79why, one step back79Clone the Express repo, then install the dev dependencies to install all the example / test suite dependencies:fix example portTJ Holowaychukbefore adoption579857c
lines 80–84why, one step back8081 $ git clone git://github.com/visionmedia/express.git --depth 182 $ cd express83 $ npm install84Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 85why, one step back85Then run whichever tests you want:fix example portTJ Holowaychukbefore adoption579857c
lines 86–87why, one step back8687 $ node examples/content-negotiationreplace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0
line 88why, one step back88Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 89why, one step back89You can also view live examples here:Merge pull request #1776 from ykumar6/masterJonathan Ongbefore adoption4cf868b
lines 90–91why, one step back9091<a href="https://runnable.com/express" target="_blank"><img src="https://runnable.com/external/styles/assets/runnablebtn.png" style="width:67px;height:25px;"></a>fix example portTJ Holowaychukbefore adoption579857c
lines 92–94why, one step back9293## Running Tests94Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 95why, one step back95To run the test suite, first invoke the following command within the repo, installing the development dependencies:fix example portTJ Holowaychukbefore adoption579857c
lines 96–98why, one step back9697 $ npm install98Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075
line 99why, one step back99Then run the tests:fix example portTJ Holowaychukbefore adoption579857c
lines 100–104why, one step back100101 $ make test102103## Contributors104replace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0
line 105why, one step back105 https://github.com/visionmedia/express/graphs/contributorsfix example portTJ Holowaychukbefore adoption579857c
lines 106–130why, one step back106107## License108109(The MIT License)110111Copyright (c) 2009-2012 TJ Holowaychuk <tj@vision-media.ca>112113Permission is hereby granted, free of charge, to any person obtaining114a copy of this software and associated documentation files (the115'Software'), to deal in the Software without restriction, including116without limitation the rights to use, copy, modify, merge, publish,117distribute, sublicense, and/or sell copies of the Software, and to118permit persons to whom the Software is furnished to do so, subject to119the following conditions:120121The above copyright notice and this permission notice shall be122included in all copies or substantial portions of the Software.123124THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,125EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF126MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.127IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY128CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,129TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE130SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.