HTML JavaScript Roff CSS Shell Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
2x Losslessy optimize images with ImageOptim Nov 22, 2017
_data Add Express 4.16.3 changelog Mar 12, 2018
_includes Update Thai translated for Getting started May 27, 2018
_layouts Fixed #891: Jan 6, 2018
css Update Thai translated for Getting started May 27, 2018
de Add German language example for Oracle driver Aug 22, 2017
en Merge pull request #933 from danielfoth/patch-1 Jun 8, 2018
es Semantic issues (#898) Jan 20, 2018
fonts Update Thai translated for Getting started May 27, 2018
fr Fixed some typo and translation errors Apr 10, 2018
images Merge pull request #881 from rjmunro/optimize-images Apr 11, 2018
it Merge pull request #717 from JonathanPrince/Jade-to-Pug-multiple-lang… Nov 3, 2017
ja Fix HTTP 404 issues in ja/zh-cn/tr/uk/uz index pages Nov 30, 2017
js Fix "Edit this page" link Jun 19, 2017
ko Merge pull request #717 from JonathanPrince/Jade-to-Pug-multiple-lang… Nov 3, 2017
pt-br Merge pull request #717 from JonathanPrince/Jade-to-Pug-multiple-lang… Nov 3, 2017
ru Merge pull request #717 from JonathanPrince/Jade-to-Pug-multiple-lang… Nov 3, 2017
sk adding kuali logo Mar 13, 2018
th Update Thai translated for Getting started May 27, 2018
tr adding kuali logo Mar 13, 2018
uk Fix HTTP 404 issues in ja/zh-cn/tr/uk/uz index pages Nov 30, 2017
uz Fix HTTP 404 issues in ja/zh-cn/tr/uk/uz index pages Nov 30, 2017
zh-cn Fix HTTP 404 issues in ja/zh-cn/tr/uk/uz index pages Nov 30, 2017
zh-tw Merge pull request #717 from JonathanPrince/Jade-to-Pug-multiple-lang… Nov 3, 2017
.gitignore Update .gitignore Aug 11, 2016
CNAME init jekyll Feb 8, 2015
CONTRIBUTING.md Update CONTRIBUTING.md Aug 22, 2017
Gemfile Change page layout to fix build Dec 15, 2016
LICENSE.md Update LICENSE.md Jul 5, 2016
README.md Update README.md Nov 3, 2017
_config.yml Fixes 'No GitHub API authentication' error per github/pages-gem#399 Aug 17, 2017
get-readmes.sh Move files around and redo readme script Oct 2, 2017
index.md Add security update to English banner and move up Sep 26, 2017
package.json Add eslint Oct 6, 2016

README.md

expressjs.com

This is the repository of the website expressjs.com. It is hosted directly from the repository as a GitHub Pages website.

Local Setup

To preview the website locally:

  1. Install Ruby and Bundler if you don't have them already.

  2. Install the jekyll-redirect-from gem:

$ gem install jekyll-redirect-from
  1. cd to the repository directory and run the following command:
$ cd expressjs.com
$ bundle install

Bundler will look in the Gemfile for which gems to install. The github-pages gem includes the same version of Jekyll and other dependencies as used by GitHub Pages, so that your local setup mirrors GitHub Pages as closely as possible.

Run Jekyll using the following command:

$ bundle exec jekyll serve

Then, load http://localhost:4000/ on your browser.

Formatting

Jekyll uses a variant of Markdown known as Kramdown.

Jekyll uses the Liquid template engine for templating.

You can use GFM fenced code blocks for JavaScript; for example:

```js
var express = require('express')
var app = express()
app.listen(3000)
```

The result looks like this:

var express = require('express')
var app = express()
app.listen(3000)

The default GitHub Pages syntax highlighting has been disabled in _config.yml to allow highlighting with prism.js.

Contributing

Feel free to make changes to the template files or the document files. The supporting docs are located in their respective directories, and the API docs are located under the _includes directory.

Please see the Contributors' Guide for more information on contributing to the documentation, including information on contributing translations.

Why use Jekyll instead of an Express-based solution?

Jekyll comes built-in with GitHub Pages. Since we are already using GitHub Pages to host the website, it makes sense to leverage the capabilities it provides. It's all about using the right tool, for the right job, under the right circumstances.