Skip to content
Myr

docs: update readme (#5994)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sebastian Beltran · committed by GitHub · parent b274047 · Browse files · 1 file+42 added−38 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+42 added−38 removed

  • other:+42 added−38 removed

1 file+42 added−38 removed

modified:Readme.md+42 added-38 removed
1[![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](http://expressjs.com/)1[![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](https://expressjs.com/)23**Fast, unopinionated, minimalist web framework for [Node.js](http://nodejs.org).**3**Fast, unopinionated, minimalist web framework for [Node.js](https://nodejs.org).**45**This project has a [Code of Conduct][].**67## Table of contents
17 unmodified lines
25[![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer]262728```js29const express = require('express')29import express from 'express'3031const app = express()3232app.get('/', function (req, res) {33app.get('/', (req, res) => {34 res.send('Hello World')35})3637app.listen(3000)
4 unmodified lines
42This is a [Node.js](https://nodejs.org/en/) module available through the43[npm registry](https://www.npmjs.com/).4445Before installing, [download and install Node.js](https://nodejs.org/en/download/).45Node.js 0.10 or higher is required.46Node.js 18 or higher is required.4748If this is a brand new project, make sure to create a `package.json` first with49the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).5051Installation is done using the52[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):5353```console54$ npm install express54```bash55npm install express56```5757Follow [our installing guide](http://expressjs.com/en/starter/installing.html)58Follow [our installing guide](https://expressjs.com/en/starter/installing.html)59for more information.6061## Features62
6 unmodified lines
69 * Executable for generating applications quickly7071## Docs & Community7272 * [Website and Documentation](http://expressjs.com/) - [[website repo](https://github.com/expressjs/expressjs.com)]73 * [#express](https://web.libera.chat/#express) on [Libera Chat](https://libera.chat) IRC73 * [Website and Documentation](https://expressjs.com/) - [[website repo](https://github.com/expressjs/expressjs.com)]74 * [GitHub Organization](https://github.com/expressjs) for Official Middleware & Modules75 * Visit the [Wiki](https://github.com/expressjs/express/wiki)76 * [Google Group](https://groups.google.com/group/express-js) for discussion77 * [Gitter](https://gitter.im/expressjs/express) for support and discussion75 * [Github Discussions](https://github.com/expressjs/discussions) for discussion on the development and usage of Express7679**PROTIP** Be sure to read [Migrating from 3.x to 4.x](https://github.com/expressjs/express/wiki/Migrating-from-3.x-to-4.x) as well as [New features in 4.x](https://github.com/expressjs/express/wiki/New-features-in-4.x).77**PROTIP** Be sure to read the [migration guide to v5](https://expressjs.com/en/guide/migrating-5)7879## Quick Start8081 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:8283 Install the executable. The executable's major version will match Express's:8487```console88$ npm install -g express-generator@485```bash86npm install -g express-generator@487```8889 Create the app:9093```console94$ express /tmp/foo && cd /tmp/foo91```bash92express /tmp/foo && cd /tmp/foo93```9495 Install dependencies:9699```console100$ npm install97```bash98npm install99```100101 Start the server:102105```console106$ npm start103```bash104npm start105```106107 View the website at: http://localhost:3000108
3 unmodified lines
112 it a great solution for single page applications, websites, hybrids, or public113 HTTP APIs.114115 Express does not force you to use any specific ORM or template engine. With support for over118 14 template engines via [Consolidate.js](https://github.com/tj/consolidate.js),116 14 template engines via [@ladjs/consolidate](https://github.com/ladjs/consolidate),117 you can quickly craft your perfect framework.118119## Examples120123 To view the examples, clone the Express repo and install the dependencies:121 To view the examples, clone the Express repository:122125```console126$ git clone https://github.com/expressjs/express.git --depth 1127$ cd express128$ npm install123```bash124git clone https://github.com/expressjs/express.git --depth 1 && cd express125```126127 Then install the dependencies:128129```bash130npm install131```132133 Then run whichever example you want:134133```console134$ node examples/content-negotiation135```bash136node examples/content-negotiation137```138139## Contributing140141 [![Linux Build][github-actions-ci-image]][github-actions-ci-url]140 [![Windows Build][appveyor-image]][appveyor-url]142 [![Test Coverage][coveralls-image]][coveralls-url]143144The Express.js project welcomes all constructive contributions. Contributions take many forms,145from code for bug fixes and enhancements, to additions and fixes to documentation, additional
6 unmodified lines
152If you discover a security vulnerability in Express, please see [Security Policies and Procedures](Security.md).153154### Running Tests155155To run the test suite, first install the dependencies, then run `npm test`:156To run the test suite, first install the dependencies:157157```console158$ npm install159$ npm test158```bash159npm install160```161162Then run `npm test`:163164```bash165npm test166```167168## People169170The original author of Express is [TJ Holowaychuk](https://github.com/tj)171
77 unmodified lines
249## License250251 [MIT](LICENSE)252247[appveyor-image]: https://badgen.net/appveyor/ci/dougwilson/express/master?label=windows248[appveyor-url]: https://ci.appveyor.com/project/dougwilson/express253[coveralls-image]: https://badgen.net/coveralls/c/github/expressjs/express/master254[coveralls-url]: https://coveralls.io/r/expressjs/express?branch=master251[github-actions-ci-image]: https://badgen.net/github/checks/expressjs/express/master?label=linux255[github-actions-ci-image]: https://badgen.net/github/checks/expressjs/express/master?label=CI256[github-actions-ci-url]: https://github.com/expressjs/express/actions/workflows/ci.yml257[npm-downloads-image]: https://badgen.net/npm/dm/express258[npm-downloads-url]: https://npmcharts.com/compare/express?minimal=true259[npm-install-size-image]: https://badgen.net/packagephobia/install/express
6 unmodified lines