view 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 source
1 [![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](https://expressjs.com/)
3 Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).
5 [![NPM Version](https://badge.fury.io/js/express.svg)](https://badge.fury.io/js/express)
6 [![Build Status](https://travis-ci.org/visionmedia/express.svg?branch=master)](https://travis-ci.org/visionmedia/express)
7 [![Coverage Status](https://img.shields.io/coveralls/visionmedia/express.svg)](https://coveralls.io/r/visionmedia/express)
8 [![Gittip](http://img.shields.io/gittip/dougwilson.svg)](https://www.gittip.com/dougwilson/)
10 ```js
11 var express = require('express')
12 var app = express()
14 app.get('/', function (req, res) {
15 res.send('Hello World')
16 })
18 app.listen(3000)
19 ```
21 **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).
23 ### Installation
25 ```bash
26 $ npm install express
27 ```
29 ## Quick Start
31 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:
33 Install the executable. The executable's major version will match Express's:
35 ```bash
36 $ npm install -g express-generator@4
37 ```
39 Create the app:
41 ```bash
42 $ express /tmp/foo && cd /tmp/foo
43 ```
45 Install dependencies:
47 ```bash
48 $ npm install
49 ```
51 Start the server:
53 ```bash
54 $ npm start
55 ```
57 ## Features
59 * Robust routing
60 * HTTP helpers (redirection, caching, etc)
61 * View system supporting 14+ template engines
62 * Content negotiation
63 * Focus on high performance
64 * Executable for generating applications quickly
65 * High test coverage
67 ## Philosophy
69 The Express philosophy is to provide small, robust tooling for HTTP servers, making
70 it a great solution for single page applications, web sites, hybrids, or public
71 HTTP APIs.
73 Express does not force you to use any specific ORM or template engine. With support for over
74 14 template engines via [Consolidate.js](https://github.com/visionmedia/consolidate.js),
75 you can quickly craft your perfect framework.
77 ## More Information
79 * [Website and Documentation](http://expressjs.com/) - [[website repo](https://github.com/visionmedia/expressjs.com)]
80 * [Github Organization](https://github.com/expressjs) for Official Middleware & Modules
81 * [#express](https://webchat.freenode.net/?channels=express) on freenode IRC
82 * Visit the [Wiki](https://github.com/visionmedia/express/wiki)
83 * [Google Group](https://groups.google.com/group/express-js) for discussion
84 * [Русскоязычная документация](http://jsman.ru/express/)
85 * [한국어 문서](http://expressjs.kr) - [[website repo](https://github.com/Hanul/expressjs.kr)]
86 * Run express examples [online](https://runnable.com/express)
88 ## Viewing Examples
90 Clone the Express repo, then install the dev dependencies to install all the example / test suite dependencies:
92 ```bash
93 $ git clone git://github.com/visionmedia/express.git --depth 1
94 $ cd express
95 $ npm install
96 ```
98 Then run whichever example you want:
100 $ node examples/content-negotiation
102 You can also view live examples here:
104 <a href="https://runnable.com/express" target="_blank"><img src="https://runnable.com/external/styles/assets/runnablebtn.png" style="width:67px;height:25px;"></a>
106 ## Running Tests
108 To run the test suite, first invoke the following command within the repo, installing the development dependencies:
110 ```bash
111 $ npm install
112 ```
114 Then run the tests:
116 ```bash
117 $ npm test
118 ```
120 ### Contributors
122 * Author: [TJ Holowaychuk](https://github.com/visionmedia)
123 * Lead Maintainer: [Douglas Christopher Wilson](https://github.com/dougwilson)
124 * [All Contributors](https://github.com/visionmedia/express/graphs/contributors)
126 ### License
128 [MIT](LICENSE)