# @nowts/core

> _This work is in progress_

Latest version **0.1.0** (published 2021-06-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nowts/core
pnpm add @nowts/core
yarn add @nowts/core
bun add @nowts/core
```

## 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.1.0 |
| Published | 2021-06-23 |
| First published | 2021-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 71.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Timo van Balen |
| Maintainers | timo123950 |

## Links

- npm: https://www.npmjs.com/package/@nowts/core
- Repository: https://github.com/Ass3rty/nowts
- Homepage: https://github.com/Ass3rty/
- Issues: https://github.com/Ass3rty/nowts/issues
- npm.io page: https://npm.io/package/@nowts/core

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [express](https://npm.io/package/express.md) ^4.17.1
- [@types/express](https://npm.io/package/@types/express.md) ^4.17.12
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13

## Recent versions

- 0.1.0 (latest) — 2021-06-23

## README

# NowTS

_This work is in progress_

## Installation

yarn

```ts
yarn add @nowts/core
```

npm

```ts
npm install --save @nowts
```

## Get Started

```ts
import * as bodyParser from 'body-parser';
import * as express from 'express';
import {
  NowModule,
  Injectable,
  newExpressDecorator,
  RestController,
} from '@nowts/core';

@Injectable()
class User implements RestController {
  constructor() {}

  async create(id, data, params) {
    console.log(params.query);
    data.createdAt = Date.now();
    return data;
  }
}

const app = express();
const now = new NowModule({
  services: [User],
  controllerBindings: [rest.bindController('/users', User)],
  sharedControllerDecorators: [
    newExpressDecorator(bodyParser.urlencoded({ extended: false })),
    newExpressDecorator(bodyParser.json()),
  ],
});
app.use(now.expressRouter());
app.listen(3000, () => console.log('Listening ...'));
```

## Documentation

Find docs [here]().

## Contributing

There are several way to contribute.

- Submit a PR to fix typos/grammatical errors.
- Open an issue to report a bug.
- Open an issue to suggest a new feature.
- Improve the docs.

## Packages

- [@nowts/cli]()
- [@nowts/common]()
- [@nowts/sequelize]()

## License

MIT

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