vertx-starter

POC for vert.x starter project
授权协议 Readme
开发语言 JavaScript
所属分类 Web应用开发、 常用JavaScript包
软件类型 开源软件
地区 不详
投 递 者 姜永贞
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

vertx-starter

This is a simple online generator for vert.x projects

The whole SPA is data-driven, build tools can be added to the file metadata/buildtools.json.

Usage from cli

Build the required files with

gulp build-cli

And then run the cli with

npm run cli

If you want a zip output you can use -z flag

Preset documentation

Look at preset specific documentation for more info:

Data files

buildtools.json

buildtools.json file is composed of several properties:

  • id an unique id for the tool
  • file just a placeholder to show on screen (has no side effects)
  • fields a list of properties that will be available to the template engine
  • languages supported languages
  • templates simple templates that apply to all languages
  • defaults default dependencies that are automatically selected for this tool
  • executables list of template elements that should be marked as executable (required for Unix OSes)
  • blob an existing zip file that will be merged into the final zip

fields

A field can be seen as a variable that can be used later on the code generation.

It allows the following properties:

  • key unique id
  • label the label for the key
  • required boolean
  • prefill a default value for the key
  • type of the field. Allowed: input, checkbox, file. Default: input

Note on type: file: In browser files are feed in the engine as string UTF-8 decoded, while on CLI they are paths to the file

languages

A language represents a programming language and has the following properties:

  • id an unique id (should match the vertx-lang-xxx)
  • templates an extra list of templates for this language

components.json

Components represent all dependencies you can add to the project. Components can be added to the file components.json

Components have the following properties:

  • groupId
  • artifactId
  • version
  • stack is the component part of the official stack
  • description
  • core is a special marker for languages like scala. If true it means that there are no prefixed artifacts

presets.json

Preset projects can be added to the generator. They are listed in the file presets.json.

A preset has the following properties:

  • id an unique id
  • description a simple description
  • dependencies a list of dependencies to be added by default
  • buildtool the tool that this preset expect to be present
  • language the language this preset requires
  • templates a list of extra templates that are required for this preset (no file name translation will occurr)
  • executables a list of extra executable templates that are required for this preset
  • blob an existing zip file that will be merged into the final zip (will override build tool one)

Templates

The generated project comes from the handlebars templates under templ for each build tools there should be a folder. In this folder, all files will be handled as handlebars templates.

When dealing with templates that need to live in a specific package name the following rules apply:

  1. The metadata should refer to the file using the following pattern: some-dir/{packageName}/File.extension
  2. The file should be saved excluding any package e.g.: some-dir/File.extension

Important to note that extra packages after the {packageName} are allowed e.g.: some-dir/{packageName}/impl/File.extension.

Build process

There is no build process except if templates are added/modified. In this case, handlebars needs to precompile the templates.

This can be done using NPM, start by installing the required dependencies:

npm install

And then compile the templates:

npm run build

Release

Increase the version in package.json will generate a new sw.js cache version and invalidate the old one.

  • 为什么尝试做这个集成 vertx是一套封装了netty的异步事件驱动的框架,netty采用的线程模型可以高效处理某些情况下的网络通讯,然而这套框架需要程序员使用函数编程的方式,不是传统的方式。本项目主要是为了构建一个框架。熟悉springboot编程的程序员只需要通过注解或者接口编程的式就可以使用到 vertx-kafka-client。 项目依赖 集成demo采用的依赖如下,主要是spring-

 相关资料
  • vertx-generator是一款基于javafx8开发的一款图形界面的vert.x逆向工程 该工具支持Oracle , SqlServer , MySQL , PostgreSql数据库的逆向生成 生成采用模板生成的方式,用户自定义模板,工具根据模板进行生成 执行方法 执行方式在项目根目录执行mvn jfx:jar进行打包;jar打包为jar包native打包为系统安装软件 该软件基于jdk1

  • vertx-pac4j 项目是 Vert.x 3 Web 应用程序的一个简单而强大的安全库,它支持身份验证和授权,还支持应用程序注销以及 CSRF 保护等高级功能。

  • 我们正在使用Vert实现RESTful服务和整个后端应用程序。x、 这些API由一款混合移动应用程序(使用Ionic/angularjs开发)使用。我们正在使用KeyClope进行用户管理,并在应用程序上进行身份验证和授权。 我的问题是,我如何使用keydove来保护(对同一组用户进行身份验证和授权)我的RESTful服务访问,这是使用Vert实现的。x、 任何示例实现都将非常有用。

  • The Reactive SQL Client Simple API focusing on scalability and low overhead. Reactive and non blocking which able to handle many database connections with a single thread. Ranked #1 in the TechEmpower

  • vertx-service-proxy 是 EventBus 代理生成。 示例: // Assume database service is already deployed somewhere....// Save some data in the databaseJsonObject message = new JsonObject();message.putString("collectio

  • 但是有了这种依赖关系 未找到任何测试 Feb 22,2018 2:41:28 PM org.junit.platform.launcher.core.defaultlauncher handleThrowable警告:ID为'junit-jupiter'的TestEngine未能发现测试java.lang.noSuchMethoderRor:org.junit.platform.engine.su