# lib-isotropy

> ### Installation

Latest version **0.0.3** (published 2018-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install lib-isotropy
pnpm add lib-isotropy
yarn add lib-isotropy
bun add lib-isotropy
```

## 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.0.3 |
| Published | 2018-02-03 |
| First published | 2018-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 11 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Isotropy Team |
| Maintainers | jeswin |

## Links

- npm: https://www.npmjs.com/package/lib-isotropy
- npm.io page: https://npm.io/package/lib-isotropy

## Dependencies (11)

- [unzip](https://npm.io/package/unzip.md) ^0.1.11
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.10.0
- [download](https://npm.io/package/download.md) ^6.2.5
- [fs-extra](https://npm.io/package/fs-extra.md) ^5.0.0
- [@types/node](https://npm.io/package/@types/node.md) ^9.3.0
- [@types/unzip](https://npm.io/package/@types/unzip.md) ^0.1.0
- [@types/js-yaml](https://npm.io/package/@types/js-yaml.md) ^3.10.1
- [@types/download](https://npm.io/package/@types/download.md) ^6.2.1
- [@types/fs-extra](https://npm.io/package/@types/fs-extra.md) ^5.0.0
- [isotropy-service-http](https://npm.io/package/isotropy-service-http.md) ^0.0.5
- [isotropy-build-typescript](https://npm.io/package/isotropy-build-typescript.md) ^0.0.6

## Recent versions

- 0.0.3 (latest) — 2018-02-03
- 0.0.2 — 2018-02-03
- 0.0.1 — 2018-02-02

## README

# Isotropy

### Installation

```bash
npm i -g isotropy
```

### Commands

Initialize a project with a default "hello world" template.
If the dir option is omitted, the current directory is used.

```bash
isotropy init <dir>
```

Init with a specific template.

```bash
isotropy init <dir> -t <git_url>

#example
isotropy init -t https://github.com/isotropy/hello-world
```

Run a project from the current directory in dev mode locally.

```bash
isotropy run
```

Run a project from a specific directory.

```bash
isotropy run <dir>
```

Deploy a Project to the Cloud. The Cloud must implement Isotropy Deployment Specification 1.0 APIs.
By default, it is set to www.looptype.com. To change the defaults, edit cloud.json in the ~/.isotropy directory.

```bash
isotropy deploy
```

You can also specify a directory

```bash
isotropy deploy <dir>
```

Deploy to a specific cloud (as defined in cloud.json) with:

```bash
isotropy deploy <dir> -c <cloud_name>
```

### Example YAML File

```yaml
name: Simple Todos
version: "0.0.1"
schema: "1.0"
git: https://github.com/isotropy/simple-todos
services:
  - name: server
    nodes: 2
    type: http
    locations:
      - location: /
        type: nodejs
        main: server/dist/index.js
      - location: /static
        type: static
        path: static
  - name: auth-server
    nodes: 1
    type: http
    locations:
      - location: /
        type: nodejs
        main: auth-server/dist/index.js
modules:
  - name: static
  - name: client
    build:
      - type: typescript
  - name: server
    build:
      - type: typescript
    connections:
      - type: webdisk
        path: src/disk.ts
        disk: todos
      - type: postgres
        path: src/db.ts
        db: todosdb
      - type: redis
        path: src/redis.ts
        db: todoscache
  - name: auth-server
    build:
      - type: typescript
    connections:
      - type: postgres
        path: src/db.ts
        db: authdb
```

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