https://github.com/52cik/express-generator
Express' application generator
https://github.com/52cik/express-generator
Last synced: 2 months ago
JSON representation
Express' application generator
- Host: GitHub
- URL: https://github.com/52cik/express-generator
- Owner: 52cik
- License: mit
- Created: 2016-12-23T16:45:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-26T02:43:45.000Z (over 8 years ago)
- Last Synced: 2025-02-03T18:57:34.489Z (4 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 自己修改的模板
1. 修改了错误处理
2. 修改了morgan处理
3. 添加了 IPv4 选项**已添加单元测试,确保项目正常运行**
## 安装
```sh
$ npm install -g 52cik/express-generator
```**使用方法完全一样**
------
[](http://expressjs.com/)
[Express'](https://www.npmjs.com/package/express) application generator.
[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Linux Build][travis-image]][travis-url]
[![Windows Build][appveyor-image]][appveyor-url]
[![Gratipay][gratipay-image]][gratipay-url]## Installation
```sh
$ npm install -g express-generator
```## Quick Start
The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:
Create the app:
```bash
$ express --view=hbs /tmp/foo && cd /tmp/foo
```Install dependencies:
```bash
$ npm install
```Start your Express.js app at `http://localhost:3000/`:
```bash
$ npm start
```## Command Line Options
This generator can also be further configured with the following command line flags.
-h, --help output usage information
--version output the version number
-e, --ejs add ejs engine support
--hbs add handlebars engine support
--pug add pug engine support
-H, --hogan add hogan.js engine support
-v, --view add view support (ejs|hbs|hjs|jade|pug|twig|vash) (defaults to jade)
-c, --css add stylesheet support (less|stylus|compass|sass) (defaults to plain css)
--git add .gitignore
-f, --force force on non-empty directory## License
[MIT](LICENSE)
[npm-image]: https://img.shields.io/npm/v/express-generator.svg
[npm-url]: https://npmjs.org/package/express-generator
[travis-image]: https://img.shields.io/travis/expressjs/generator/master.svg?label=linux
[travis-url]: https://travis-ci.org/expressjs/generator
[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/generator/master.svg?label=windows
[appveyor-url]: https://ci.appveyor.com/project/dougwilson/generator
[downloads-image]: https://img.shields.io/npm/dm/express-generator.svg
[downloads-url]: https://npmjs.org/package/express-generator
[gratipay-image]: https://img.shields.io/gratipay/dougwilson.svg
[gratipay-url]: https://gratipay.com/dougwilson/