Code Monkey home page Code Monkey logo

ansvia-vscode's Introduction

Ansvia VSCode

Ansvia VSCode extension, to simplify programmer's life.

Features

Server

  • Server service & API code generator.
  • Server data model generator.
  • Server data model generator from SQL definition.
  • Server db model type to API type converter.
  • Server model's DAO generator.
  • etc.. etc..

Mobile (Flutter)

  • BloC code generator.
  • Flutter CRUD UI complete flow.
  • Flutter model.
  • Flutter model edit fields.
  • Flutter model add fields.
  • Generate Flutter model from SQL definition.
  • Generate Flutter model from Rust struct.
  • Flutter list widget (bloc/non bloc/stateless/statefull).
  • Flutter list item widget.
  • Flutter detail field widget.
  • Flutter basic page.
  • Flutter detail page.
  • Flutter form add page.
  • Flutter form edit page.
  • Flutter form autocomplete field.
  • Flutter Popup Menu Button.
  • etc.. etc..

Mobile (Vue.js)

  • Generate CRUD Vue page.

Utils

  • Generate snippet code from selected text with multi-line support.

Configurable

You can configure this extension per project via ansvia-vscode.yaml file by place the file into your root project directory.

Example configuration:

# Synchronized code generator Server code -> Flutter code.
sync_gen:
  enum_types:
    # Generate dart code from Rust enum type ErrorCode.
    - src: src/error.rs#ErrorCode
      outs:
        - dart:frontends/mobile/lib/core/error_code.dart

    - src: src/types.rs#ObjectKind
      outs:
        - dart:frontends/mobile/lib/core/object_kind.dart

# Server related configuration
server:
  # Model directory
  model_dir: models
  # Model file name
  model_file: mod.rs

Build

Enter into root project directory, and type:

$ vsce package

The above command will created vsix file, eg: ansvia-vscode-0.0.4.vsix Now you can install into VS Code > Extension > Install from VSIX.

Enjoy!

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.