GithubHelp home page GithubHelp logo

rbadillap / convector-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from worldsibu/convector-cli

1.0 1.0 0.0 227 KB

[WIP] Official Command-Line Interface for Convector Framework

Home Page: https://github.com/worldsibu/convector-cli

License: Other

TypeScript 88.46% HTML 11.54%

convector-cli's Introduction

Convector CLI

Convector CLI is the official Command-Line Interface for Convector Framework. It is an open source project under an Apache 2.0 license to help you create Convector projects easily.

Prerequisites

  • Node 8.11.0 (other versions might work, but this is the one we use for development)
  • Docker

Usage

npm install -g @worldsibu/convector-cli

Creating a new project with a chaincode ready

conv new PROJECT-NAME -c CHAINCODE-NAME
cd PROJECT-NAME
npm i
# Bring up a development blockchain in your computer
npm run env:restart
# Install the chaincode to the blockchain
npm run cc:start -- CHAINCODE-NAME 1
# Upgrade the code amazing code you build on top of the template
npm run cc:upgrade -- CHAINCODE-NAME 2

Details

conv new

The way to kickoff a new project. It includes the posibility to create a new project along a new Chaincode right out of the box. npm i and get a project working for you.

# New project
conv new <project-name> [-c -chaincode <chaincode-name>]

conv generate

The easiest way to include new chaincodes, and model and controller files.

# Creates a chaincode package with a `model` and `controller` default. This needs to be run inside a Convector project folder.
conv generate chaincode <chaincode-name>
# Creates the file in the current folder (by overriding the folder conventions).
conv generate model <chaincode-name>
# Creates the file in the current folder (by overriding the folder conventions).
conv generate controller <chaincode-name>

Tests ๐Ÿ‘ทโ€โ™‚๏ธ

Fork Convector CLI repo, build it, link it to your global node_modules, and use it.

  1. First bring up all the source code dependencies by running npm i.
  2. Then run npm link to enable it globally.

Roadmap ๐Ÿ—บ

Proposed current roadmap. Have ideas? Post them in the Issues section.

  1. Individual generators for:
    1. Project root structure - conv new
    2. Package structure - conv new -c <chaincode> conv generate
    3. Model file - conv generate model <model-name>
    4. Controller file - conv generate controller <controller-name>
    5. Convector Tool: Dev Env and Chaincode Manager - npm run env:restart npm run cc:start -- <chaincode-name> <version>
  2. Log usage information to internet.
  3. [๐Ÿคš We are here] Unify other Convector CLIs into one.
  4. Test methods generation from controller.
  5. Error collection details - report.
  6. Versioning of cc creation, distribute different versions of dependencies.
  7. Download settings from the internet.

Important โš—๏ธ

This project is currently under development and it's changing fast, but you can use it for your projects and if something doesn't work or would like new features provide feedback. We love community feedback!

Support

  • For recommendations, feature requests, or bugs go to our issues section.
  • News on Convector, subscribe to our Newsletter.
  • Need support? Chat directly with our team, join our Discord.

convector-cli's People

Contributors

walmon avatar rbadillap avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.