githubEdit

express

Express Logoarrow-up-right

Fast, unopinionated, minimalist web framework for Node.jsarrow-up-right.

NPM Versionarrow-up-right NPM Install Sizearrow-up-right NPM Downloadsarrow-up-right

const express = require('express')
const app = express()

app.get('/', function (req, res) {
  res.send('Hello World')
})

app.listen(3000)

Installation

This is a Node.jsarrow-up-right module available through the npm registryarrow-up-right.

Before installing, download and install Node.jsarrow-up-right. Node.js 0.10 or higher is required.

If this is a brand new project, make sure to create a package.json first with the npm init commandarrow-up-right.

Installation is done using the npm install commandarrow-up-right:

$ npm install express

Follow our installing guidearrow-up-right for more information.

Features

  • Robust routing

  • Focus on high performance

  • Super-high test coverage

  • HTTP helpers (redirection, caching, etc)

  • View system supporting 14+ template engines

  • Content negotiation

  • Executable for generating applications quickly

Docs & Community

PROTIP Be sure to read Migrating from 3.x to 4.xarrow-up-right as well as New features in 4.xarrow-up-right.

Quick Start

The quickest way to get started with express is to utilize the executable express(1)arrow-up-right to generate an application as shown below:

Install the executable. The executable's major version will match Express's:

Create the app:

Install dependencies:

Start the server:

View the website at: http://localhost:3000

Philosophy

The Express philosophy is to provide small, robust tooling for HTTP servers, making it a great solution for single page applications, websites, hybrids, or public HTTP APIs.

Express does not force you to use any specific ORM or template engine. With support for over 14 template engines via Consolidate.jsarrow-up-right, you can quickly craft your perfect framework.

Examples

To view the examples, clone the Express repo and install the dependencies:

Then run whichever example you want:

Contributing

Linux Buildarrow-up-right Windows Buildarrow-up-right Test Coveragearrow-up-right

The Express.js project welcomes all constructive contributions. Contributions take many forms, from code for bug fixes and enhancements, to additions and fixes to documentation, additional tests, triaging incoming pull requests and issues, and more!

See the Contributing Guidearrow-up-right for more technical details on contributing.

Security Issues

If you discover a security vulnerability in Express, please see Security Policies and Proceduresarrow-up-right.

Running Tests

To run the test suite, first install the dependencies, then run npm test:

People

The original author of Express is TJ Holowaychukarrow-up-right

The current lead maintainer is Douglas Christopher Wilsonarrow-up-right

List of all contributorsarrow-up-right

License

MITarrow-up-right

Last updated