# miumiu

> Fast API server with Typescript

Latest version **1.0.7** (published 2018-11-25) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install miumiu
pnpm add miumiu
yarn add miumiu
bun add miumiu
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2018-11-25 |
| First published | 2018-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 30.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ba |
| Maintainers | duongvanba |

## Links

- npm: https://www.npmjs.com/package/miumiu
- Repository: https://github.com/duongvanba/miumiu
- Homepage: https://github.com/duongvanba/miumiu#readme
- Issues: https://github.com/duongvanba/miumiu/issues
- npm.io page: https://npm.io/package/miumiu

## Dependencies (6)

- [express](https://npm.io/package/express.md) ^4.16.4
- [@types/node](https://npm.io/package/@types/node.md) ^10.12.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.18.3
- [@types/express](https://npm.io/package/@types/express.md) ^4.16.0
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.12
- [@types/reflect-metadata](https://npm.io/package/@types/reflect-metadata.md) ^0.1.0

## Recent versions

- 1.0.7 (latest) — 2018-11-25
- 1.0.6 — 2018-11-04
- 1.0.5 — 2018-11-02
- 1.0.4 — 2018-11-02
- 1.0.3 — 2018-10-29
- 1.0.2 — 2018-10-29
- 1.0.1 — 2018-10-29
- 1.0.0 — 2018-10-29

## README

### Fast API server with NodeJS and Typescirpt

### Struct project
```
--- index.ts
--- controllers
    |------ A.controller.ts
```

### Require
Install typescirpt and setup carefull for decorator
You shoud install ts-node-dev for development


### Create controller
```typescript
import { Controller, Get, PathParam, Post } from "miumiu";

@Controller("/hello")
export class AController {

    @Get('/')
    public async get_live(
     
    ){
        return {"OK"};
    }
    
    @Post('/')
    public async get_die(
       @Require()  @BodyParam('abc') cookies : string[]
    ){
        return {cookies};

    }
}
```

### Create server
```typescript
import { Server } from "miumiu";

new Server({port: 8080}).start();
```

### Start
#### Intall ts-node-dev for development
```bash
ts-node-dev index.ts
```

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