open-index/open-npm huggingface dataset:
npm package: @holofy/schema
Description: MongoDB schema for Holofy
Author: Elvin Ali
Latest version: 1.0.8

# holofy-schema

## About

MongoDB schema 

* `@holofy/schema` provides models for interacting with database objects.

## Usage

Install the package:

```bash
npm install @holofy/schema --save-prod
```

Import as necessary:

```js
const db = require('@holofy/schema');
const models = db(config.db);
```

## To test on dev

Add *.env*  to project root folder 

```bash
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_PORT= 
DB_NAME=
```

Add */sandbox/index.js*  to project root folder 

```js
// eslint-disable-next-line import/no-extraneous-dependencies
require('dotenv').config();

const db = require('../index');

const models = db({
  user: process.env.DB_USER,
  password: process.env.DB_PASSWORD,
  host: process.env.DB_HOST,
  port: process.env.DB_PORT,
  database: process.env.DB_NAME,
});

models.Skill.findOne({}).then((res) => console.log(res));
```

On terminal 

```bash
node sandbox/index.js
```

## Please do not commit sandbox/* and .env

## Publish New Package

* Only once: In this repository: Add NPM_AUTH_TOKEN to GitLab -> Settings -> CI/CD -> Settings -> Variables 

``` bash
git add .
git commit
npm version [major | minor | patch]
```
npm package: @holofy/skill-store-schema
Description: "MongoDB schema for Holofy Skill Store"
Author: Elvin Ali
Latest version: 1.0.4

# skill-store-schema

# About
MongoDB schema


@holofy/skill-store-schema provides models for interacting with database objects. 

# Usage

Install the package

```
npm install @holofy/skill-store-schema --save-prod
```

Import as necessary:

```
const db = require('@holofy/schema');
const models = db(config.db);
```

## To test on DeV

Add .env  to project root folder

```
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_PORT= 
DB_NAME=
```

Add /sandbox/index.js  to project root folder

```
require('dotenv').config();

const db = require('../index');

const models = db({
  user: process.env.DB_USER,
  password: process.env.DB_PASSWORD,
  host: process.env.DB_HOST,
  port: process.env.DB_PORT,
  database: process.env.DB_NAME,
});

models.Space.findOne({}).then((res) => console.log(res));

```

On terminal

```
node sandbox/index.js
```

# Please do not commit sandbox/* and .env

# Seed to collection

```
md-seed run  // to seed to databases
md-seed run <CollectionName> // to seed that perticular collection
md-seed run --dropdb // drop db before seeding
```

# Publish New Package

Only once: In this repository: Add NPM_AUTH_TOKEN to GitLab -> Settings -> CI/CD -> Settings -> Variables

```
git add .
git commit
npm version [major | minor | patch]

```