close
The Wayback Machine - https://web.archive.org/web/20200427225441/https://github.com/expressjs/expressjs.com
Skip to content
HTML CSS JavaScript Other
Branch: gh-pages
Clone or download

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BERJAYA 2x Update references to expressjs repositories Apr 1, 2020
BERJAYA _data Add Express 4.17.1 changelog May 26, 2019
BERJAYA _includes Document nexter('router') in API docs Apr 23, 2020
BERJAYA _layouts copy 5x documentations files Jun 11, 2019
BERJAYA css Fix table style to block so as not to overflow into surrounding text Apr 22, 2020
BERJAYA de Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA en Add documention on Promise support in middleware for 5+ Apr 22, 2020
BERJAYA es Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA fonts Update Thai translated for Getting started May 27, 2018
BERJAYA fr Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA images Update Exove company logo Apr 1, 2020
BERJAYA it Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA ja Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA js Fix 404 error for edit on github Apr 22, 2019
BERJAYA ko Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA pt-br Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA ru Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA sk Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA th Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA tr Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA uk Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA uz Update references to expressjs repositories Apr 1, 2020
BERJAYA zh-cn Remove reference to deprecated hpkp Apr 1, 2020
BERJAYA zh-tw Fix anchor link for docs in zh-TW Apr 13, 2020
BERJAYA .gitignore Update .gitignore Aug 11, 2016
BERJAYA .travis.yml Use Node.js 12 in CI Mar 26, 2020
BERJAYA CNAME init jekyll Feb 8, 2015
BERJAYA CONTRIBUTING.md Update CONTRIBUTING.md Aug 22, 2017
BERJAYA Gemfile Change page layout to fix build Dec 15, 2016
BERJAYA LICENSE.md Update LICENSE.md Jul 5, 2016
BERJAYA README.md Improve local setup steps formatting & readme URLs Oct 4, 2018
BERJAYA _config.yml Fixes 'No GitHub API authentication' error per github/pages-gem#399 Aug 17, 2017
BERJAYA get-readmes.sh Move files around and redo readme script Oct 2, 2017
BERJAYA index.md Initial cleanup of 5.x alpha doc Jun 28, 2019
BERJAYA package.json lint: apply standard 14 formatting Mar 26, 2020

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
    
  3. 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.

  4. Run Jekyll using the following command:

    $ bundle exec jekyll serve
    

    Then, load http://localhost:4000 in 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.

You can’t perform that action at this time.