Mercurial > cgi-bin > hgwebdir.cgi > POP > oldRepo
diff 1__Development/6__Website/node_modules/express/Readme.md @ 5:e73fbbcb5fd2
Persisting basic graph works, starting to add persist of view hierarchy too
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Sun, 03 Aug 2014 23:38:15 -0700 |
| parents | |
| children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/1__Development/6__Website/node_modules/express/Readme.md Sun Aug 03 23:38:15 2014 -0700 1.3 @@ -0,0 +1,128 @@ 1.4 +[](https://expressjs.com/) 1.5 + 1.6 + Fast, unopinionated, minimalist web framework for [node](http://nodejs.org). 1.7 + 1.8 + [](https://badge.fury.io/js/express) 1.9 + [](https://travis-ci.org/visionmedia/express) 1.10 + [](https://coveralls.io/r/visionmedia/express) 1.11 + [](https://www.gittip.com/dougwilson/) 1.12 + 1.13 +```js 1.14 +var express = require('express') 1.15 +var app = express() 1.16 + 1.17 +app.get('/', function (req, res) { 1.18 + res.send('Hello World') 1.19 +}) 1.20 + 1.21 +app.listen(3000) 1.22 +``` 1.23 + 1.24 + **PROTIP** 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). 1.25 + 1.26 +### Installation 1.27 + 1.28 +```bash 1.29 +$ npm install express 1.30 +``` 1.31 + 1.32 +## Quick Start 1.33 + 1.34 + 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: 1.35 + 1.36 + Install the executable. The executable's major version will match Express's: 1.37 + 1.38 +```bash 1.39 +$ npm install -g express-generator@4 1.40 +``` 1.41 + 1.42 + Create the app: 1.43 + 1.44 +```bash 1.45 +$ express /tmp/foo && cd /tmp/foo 1.46 +``` 1.47 + 1.48 + Install dependencies: 1.49 + 1.50 +```bash 1.51 +$ npm install 1.52 +``` 1.53 + 1.54 + Start the server: 1.55 + 1.56 +```bash 1.57 +$ npm start 1.58 +``` 1.59 + 1.60 +## Features 1.61 + 1.62 + * Robust routing 1.63 + * HTTP helpers (redirection, caching, etc) 1.64 + * View system supporting 14+ template engines 1.65 + * Content negotiation 1.66 + * Focus on high performance 1.67 + * Executable for generating applications quickly 1.68 + * High test coverage 1.69 + 1.70 +## Philosophy 1.71 + 1.72 + The Express philosophy is to provide small, robust tooling for HTTP servers, making 1.73 + it a great solution for single page applications, web sites, hybrids, or public 1.74 + HTTP APIs. 1.75 + 1.76 + Express does not force you to use any specific ORM or template engine. With support for over 1.77 + 14 template engines via [Consolidate.js](https://github.com/visionmedia/consolidate.js), 1.78 + you can quickly craft your perfect framework. 1.79 + 1.80 +## More Information 1.81 + 1.82 + * [Website and Documentation](http://expressjs.com/) - [[website repo](https://github.com/visionmedia/expressjs.com)] 1.83 + * [Github Organization](https://github.com/expressjs) for Official Middleware & Modules 1.84 + * [#express](https://webchat.freenode.net/?channels=express) on freenode IRC 1.85 + * Visit the [Wiki](https://github.com/visionmedia/express/wiki) 1.86 + * [Google Group](https://groups.google.com/group/express-js) for discussion 1.87 + * [Русскоязычная документация](http://jsman.ru/express/) 1.88 + * [한국어 문서](http://expressjs.kr) - [[website repo](https://github.com/Hanul/expressjs.kr)] 1.89 + * Run express examples [online](https://runnable.com/express) 1.90 + 1.91 +## Viewing Examples 1.92 + 1.93 + Clone the Express repo, then install the dev dependencies to install all the example / test suite dependencies: 1.94 + 1.95 +```bash 1.96 +$ git clone git://github.com/visionmedia/express.git --depth 1 1.97 +$ cd express 1.98 +$ npm install 1.99 +``` 1.100 + 1.101 + Then run whichever example you want: 1.102 + 1.103 + $ node examples/content-negotiation 1.104 + 1.105 + You can also view live examples here: 1.106 + 1.107 + <a href="https://runnable.com/express" target="_blank"><img src="https://runnable.com/external/styles/assets/runnablebtn.png" style="width:67px;height:25px;"></a> 1.108 + 1.109 +## Running Tests 1.110 + 1.111 + To run the test suite, first invoke the following command within the repo, installing the development dependencies: 1.112 + 1.113 +```bash 1.114 +$ npm install 1.115 +``` 1.116 + 1.117 + Then run the tests: 1.118 + 1.119 +```bash 1.120 +$ npm test 1.121 +``` 1.122 + 1.123 +### Contributors 1.124 + 1.125 + * Author: [TJ Holowaychuk](https://github.com/visionmedia) 1.126 + * Lead Maintainer: [Douglas Christopher Wilson](https://github.com/dougwilson) 1.127 + * [All Contributors](https://github.com/visionmedia/express/graphs/contributors) 1.128 + 1.129 +### License 1.130 + 1.131 + [MIT](LICENSE)
