# express-ts-starter

> Generate typescript express application

Latest version **0.3.0** (published 2019-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install express-ts-starter
pnpm add express-ts-starter
yarn add express-ts-starter
bun add express-ts-starter
```

Provides the command `express-ts-starter`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2019-06-08 |
| First published | 2019-01-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Wendly Saintil |
| Maintainers | wendly |
| Keywords | express-ts-starter |

## Links

- npm: https://www.npmjs.com/package/express-ts-starter
- Repository: https://github.com/wspecs/express-ts-starter
- Homepage: https://github.com/wspecs/express-ts-starter#readme
- Issues: https://github.com/wspecs/express-ts-starter/issues
- npm.io page: https://npm.io/package/express-ts-starter

## Dependencies (10)

- [prompts](https://npm.io/package/prompts.md) ^2.0.1
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.3
- [walkdir](https://npm.io/package/walkdir.md) 0.0.12
- [commander](https://npm.io/package/commander.md) ^2.19.0
- [dot-object](https://npm.io/package/dot-object.md) ^1.7.1
- [great-logs](https://npm.io/package/great-logs.md) 0.0.4
- [args-finder](https://npm.io/package/args-finder.md) 0.0.3
- [@decorators/di](https://npm.io/package/@decorators/di.md) ^1.0.2
- [@decorators/express](https://npm.io/package/@decorators/express.md) ^2.3.0
- [express-starter-config](https://npm.io/package/express-starter-config.md) ^0.4.1

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.3.0 (latest) — 2019-06-08
- 0.2.1 — 2019-06-08
- 0.2.0 — 2019-06-08
- 0.1.4 — 2019-06-08
- 0.1.3 — 2019-06-08
- 0.1.2 — 2019-06-08
- 0.1.1 — 2019-06-07
- 0.1.0 — 2019-06-07
- 0.0.7 — 2019-01-22
- 0.0.6 — 2019-01-22
- 0.0.5 — 2019-01-22
- 0.0.4 — 2019-01-22
- 0.0.3 — 2019-01-22
- 0.0.2 — 2019-01-21
- 0.0.1 — 2019-01-21

## README

<!-- prettier-ignore-start -->
# express-ts-starter

Generate typescript express application
![npm](https://img.shields.io/npm/v/express-ts-starter.svg) ![license](https://img.shields.io/npm/l/express-ts-starter.svg) ![github-issues](https://img.shields.io/github/issues/wspecs/express-ts-starter.svg)

![nodei.co](https://nodei.co/npm/express-ts-starter.png?downloads=true&downloadRank=true&stars=true)

![travis-status](https://img.shields.io/travis/wspecs/express-ts-starter.svg)
![stars](https://img.shields.io/github/stars/wspecs/express-ts-starter.svg)
![forks](https://img.shields.io/github/forks/wspecs/express-ts-starter.svg)

![forks](https://img.shields.io/github/forks/wspecs/express-ts-starter.svg)

![](https://david-dm.org/wspecs/express-ts-starter/status.svg)
![](https://david-dm.org/wspecs/express-ts-starter/dev-status.svg)

## Features

- Generate typescript express application
- Support i18n

## Usage
```bash
Usage: express-ts-starter [options] [command]

Options:
  -h, --help  output usage information

Commands:
  start       Generate express application
```

## Sample

```typescript
// lib/routes/landing.ts
// ======
// package-dependency import *  from '@decorators/express';
import { Controller, Get, Response } from '@decorators/express';

@Controller('/')
export class LandingController {
  @Get('/')
  landing(@Response() res: any) {
    console.log();
    res.serve('landing', {
      greetings: res.__('greetings', { name: 'World' }),
      welcome: res.__('welcome')
    });
  }
}

// index.ts 
// ========
import { LandingController } from './lib/routes/landing';
import { BaseApplicationServer } from 'express-starter-config';

class ApplicationServer extends BaseApplicationServer {
  constructor() {
    super();
    this.addControllers(LandingController);
  }
}

// Start the application
new ApplicationServer().start();
```

## Install

```bash
npm install -g typescript
npm install --save express-ts-starter
```

## Scripts

 - **npm run readme** : `node ./node_modules/.bin/node-readme`
 - **npm run build:minify** : `node dist/lib/minify.js --css --js --debug`
 - **npm run build:typescript** : `tsc`
 - **npm run build** : `rm -rf dist && tsc && npm run readme`
 - **npm run prod** : `npm run build && node dist/index.js --instance prod`
 - **npm run dev** : `npm run build:typescript && node dist/index.js --instance dev --debug`
 - **npm run test** : `mocha ./dist/test/*.js`
 - **npm run watch** : `nodemon`
 - **npm run start** : `node dist/index.js --instance prod`

## Dependencies

Package | Version | Dev
--- |:---:|:---:
[@decorators/di](https://www.npmjs.com/package/@decorators/di) | ^1.0.2 | ✖
[@decorators/express](https://www.npmjs.com/package/@decorators/express) | ^2.3.0 | ✖
[args-finder](https://www.npmjs.com/package/args-finder) | 0.0.3 | ✖
[commander](https://www.npmjs.com/package/commander) | ^2.19.0 | ✖
[dot-object](https://www.npmjs.com/package/dot-object) | ^1.7.1 | ✖
[express-starter-config](https://www.npmjs.com/package/express-starter-config) | ^0.4.1 | ✖
[great-logs](https://www.npmjs.com/package/great-logs) | 0.0.4 | ✖
[nodemon](https://www.npmjs.com/package/nodemon) | ^1.19.1 | ✖
[prompts](https://www.npmjs.com/package/prompts) | ^2.0.1 | ✖
[shelljs](https://www.npmjs.com/package/shelljs) | ^0.8.3 | ✖
[walkdir](https://www.npmjs.com/package/walkdir) | 0.0.12 | ✖
[@types/chai](https://www.npmjs.com/package/@types/chai) | ^4.1.3 | ✔
[@types/express](https://www.npmjs.com/package/@types/express) | ^4.16.0 | ✔
[@types/mocha](https://www.npmjs.com/package/@types/mocha) | ^5.2.0 | ✔
[@types/node](https://www.npmjs.com/package/@types/node) | ^10.0.4 | ✔
[chai](https://www.npmjs.com/package/chai) | ^4.1.2 | ✔
[mocha](https://www.npmjs.com/package/mocha) | ^5.1.1 | ✔
[node-readme](https://www.npmjs.com/package/node-readme) | ^0.1.9 | ✔


## Contributing

Please check the [Contributing Guidelines](contributing.md) for more details. Thanks!

## Author

[Wendly Saintil](https://twitter.com/wendlysaintil)

## License

[MIT](LICENSE)
<!-- prettier-ignore-end -->

---
_Source: https://npm.io/package/express-ts-starter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
