HTML JavaScript Roff CSS Shell Makefile
Latest commit a0ffaf4 Jun 27, 2017 @crandmck crandmck committed on GitHub Merge pull request #826 from DRL9/patch-1
Update link of StrongLoop Blog in Resources/Books and blogs
Permalink
Failed to load latest commit information.
2x 3.x warning Sep 7, 2015
_data Add Express 4.15.3 changelog May 17, 2017
_includes Guidelines for setting state in req.params (#821) Jun 21, 2017
_layouts Change page layout to fix build Dec 15, 2016
css Fix header width May 18, 2017
de Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
en Update link of StrongLoop Blog Jun 27, 2017
es Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
fonts init jekyll Feb 8, 2015
fr Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
images Add Agrippa solns image and remove ibm email addr Mar 6, 2017
it Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
ja Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
js Fix "Edit this page" link Jun 19, 2017
ko Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
pt-br Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
ru Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
sk Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
uk Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
uz Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
zh-cn Update best-practice-performance.md Apr 22, 2017
zh-tw Generator page (all languages): Changed 2nd example to use Pug and ex… Feb 14, 2017
.gitignore Update .gitignore Aug 11, 2016
CNAME init jekyll Feb 8, 2015
CONTRIBUTING.md Create CONTRIBUTING.md Jun 12, 2017
Gemfile Change page layout to fix build Dec 15, 2016
LICENSE.md Update LICENSE.md Jul 5, 2016
README.md Fix GFM link in README.md (#819) Jun 19, 2017
_config.yml Change page layout to fix build Dec 15, 2016
get-readmes.sh Fix get-readmes.sh for parity with written files Feb 26, 2017
index.md Update version num on home page Mar 2, 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:

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.