lib-isotropy
### Installation
Last updated 2 years ago by jeswin .
MIT · Original npm · Tarball · package.json
$ cnpm install lib-isotropy 
SYNC missed versions from official npm registry.

Isotropy

Installation

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.

isotropy init <dir>

Init with a specific template.

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.

isotropy run

Run a project from a specific directory.

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.

isotropy deploy

You can also specify a directory

isotropy deploy <dir>

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

isotropy deploy <dir> -c <cloud_name>

Example YAML File

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

Current Tags

  • 0.0.3                                ...           latest (2 years ago)

3 Versions

  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (11)
Dev Dependencies (13)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |