open-index/open-npm huggingface dataset:
npm package: @roshangara/mini-webservice
Description: Develop and ExpressJS webserver using TypeScript
Latest version: 1.1.3

# ExpressTypeScript
Develop an ExpressJS webserver using TypeScript


create Controller *ExampleController.ts*
```ts
import { Request, Response } from 'express';
import { Controller, Get } from '@overnightjs/core';

@Controller('api')
export default class ExampleController {
  @Get(':msg')
  private getMessage(req: Request, res: Response) {
    res.status(200).json({
      message: req.params.msg,
    });
  }
}
```


create Controller *ExampleController.ts*
```ts
import ClusterServer from '@roshangara/mini-webservice/src/ClusterServer'
import ExampleController from './controllers/ExampleController';

let app = new ClusterServer([ExampleController]);

app.start();

```
npm package: @roshanreacts/mercury
Description: Fully automated models and grpahql schema generator for your Apollo Server
Author: Roshan K Gujarathi
Latest version: 1.0.0

# Realmoose

A mongoose like ORM for Realm DB.

## Installation

Use the package manager yarn to install realmoose.

```bash
npm install realmoose
```

Use the package manager yarn to install realmoose.

```bash
yarn add realmoose
```

## Usage

Realmoose is a [mongoose](https://www.npmjs.com/package/mongoose) like ORM built for [RealmDB](https://realm.io/).

The basic usage of realmoose in es6 goes like

```javascript
import {Schema, Model} from "realmoose";

const carSchema = new Schema({
    name: "Car",
    properties: {
        make: { type: "string" },
        model: { type: "string", indexed: true, unique: true },
        miles?: { type: "int", default: 0 },
    },
});

let carModel = new Model(carSchema, "vehicles.realm", 1);
```

This is almost similar to the mongoose model.

```javascript
const newCarSchema = { make: "BWM", model: "Good4" };
const newCar = carModel.create(newCarSchema); // Will create a rec with newCarSchema obj.
```

We have some key features in realmoose.

The most important of them is, you can use a **unique** key for the unique validation of the document (at first JSON node level).
As you know RealmDB doesn't support unique field validation out of the box. So we added this feature to make life better.

This package also has some more features like.

- Model-level DB path declaration (No need to import and merge your schemas).
- Has all the basic methods like find, findById, findOne, update, create... for the model.
- No need for Realm.write for write transactions.

## Roadmap

- Virtual fields
- Populate

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)