在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):vert-x3/vertx-examples开源软件地址(OpenSource Url):https://github.com/vert-x3/vertx-examples开源编程语言(OpenSource Language):Java 77.5%开源软件介绍(OpenSource Introduction):Vert.x 4 examplesThis repository contains a range of examples so you can get up and running easily with Vert.x. 4 Vert.x 3 examples can be found here https://github.com/vert-x3/vertx-examples/tree/3.x Maven usersStart with the simplest Maven example to show you how to setup a simple Vert.x project that uses
Maven. You need to have Java 8 installed and set the Use that as a template for setting up a Maven project with Vert.x. Progress to the simple Maven verticle example to show you how to deploy your code as verticles in a Maven project. Also check Maven verticles examples to show how you can use Maven with Groovy verticle. Want to start right away, open the first example in Eclipse Che: Gradle usersStart with the simplest Gradle example to show you how to setup a simple Vert.x project that uses Gradle. Use that as a template for setting up a Gradle project with Vert.x. Progress to the simple Gradle verticle example to show you how to deploy your code as verticles in a Gradle project Neither Maven nor Gradle usersThat’s fine too :) You can run most of the examples at the command line using The examplesThe examples demonstrate how to use all different bits of Vert.x including Vert.x core, Vert.x-Web and various other services and features. Most of the examples have been written as verticles. For more information on verticles please consult the Vert.x core manual. Using verticles allows you to scale and run your code from the command line more easily, but if you prefer the same code in the verticles can also be run embedded. It’s really up to you. Verticles are entirely optional in Vert.x. Running the examplesRunning in your IDEMost of the Java examples can be run directly in your IDE (if you have one!). We provide a Just right click the main method or class in your IDE and run as… application (supported by all major IDEs). Running at the command lineIf Or perhaps you’re just a command line kind of person. If you’re coming from using other platforms such as Node.js you might want to work this way. You can think of the
Instructions for installing Vert.x are in the next section. Once Vert.x is installed, to run an example, just cd to the example directory and type cd core-examples/src/main/java/io/vertx/example/core vertx run EchoServer.java cd core-examples/src/main/js/echo vertx run echo_server.js Yes! You can run Java source files directly using Vert.x (no compilation required). Installing Vert.x
Pre-requisites: You will need to have Java 8 JDK installed.
On the download page, you will find several distributions. Each distribution has a different set of components:
Vert.x core examplesThe Vert.x core examples contains a wide range of examples using just Vert.x Core. Vert.x-Web examplesVert.x-Web is a toolkit for building web applications using Vert.x The Vert.x-Web examples contains a wide range of examples using Vert.x-Web Vert.x Web Client examplesVert.x Web Client that provides an easy to use web client for Vert.x. The Vert.x Web Client examples contains a wide range of examples using the Vert.x Web Client Vertx Unit examplesVertx-Unit is a library for writing asynchronous tests. We include some examples of how to use this tool to test your Vert.x (or other asynchronous) applications. The Vert.x Unit examples shows how to use Vert.x Unit. Vert.x JUnit 5 examplesThe Vert.x Opentracing examplesVert.x Opentracing examples contains a wide range of examples using Vert.x Opentracing. Vert.x Zipkin examplesVert.x Zipkin examples contains a wide range of examples using Vert.x Zipkin. RxJava examplesVert.x for RxJava provides most of its APIs as RxJava so you can use those if you prefer. RxJava is a great choice when you want to perform complex operations on multiple asynchronous streams of data. The Vert.x RxJava 2 examples contains a wide range of examples using Vert.x for RxJava 2 The Vert.x RxJava 3 examples contains a wide range of examples using Vert.x for RxJava 3 gRPC examplesThe Vert.x gRPC Examples show how you can implement a gRPC service and invoke a gRPC service with Vert.x. Kotlin examplesThe Vert.x Kotlin Examples shows a few examples with Kotlin such a REST application, Kotlin coroutines and usage of KotlinTest. Mail examplesThe Vert.x Mail examples contains a few examples using Vert.x Mail The mail examples show different ways to create the mail message and send it via
tls, ssl etc. The examples either use Service Proxy ExamplesThe Vert.x Service Proxy examples contains an example of service proxy usage. It depicts how a service provider can be implemented and how the published service can be consumed. Docker examplesThe Vert.x Docker examples shows how to deploy Vert.x application in Docker containers. Spring ExamplesThe Vert.x Spring Examples shows how vert.x application can be integrated inside a Spring ecosystem. Redis exampleThe Vert.x Redis Example shows how you can interact with Redis using the vert.x Redis client. Mongo exampleThe Vert.x Mongo Example shows how you can interact with MongoDB using the vert.x Mongo client. SQL client exampleThe Vert.x SQL Client Examples shows how you can interact PostgreSQL or MySQL Databases using the Reactive SQL client. Kafka exampleThe Vert.x Kafka Examples shows how you can interact Kafka using the vert.x Kafka client. MQTT exampleThe Vert.x MQTT Examples shows how you can write MQTT servers and clients using Vert.x MQTT. Service Proxy ExamplesThe Vert.x Service Proxy examples contains an example of service proxy usage. It depicts how a service provider can be implemented and how the published service can be consumed. JPMS examplesThis JPMS examples shows how a simple Java (11) modular application using Vert.x as automatic modules. Vert.x fatjar examplesThe Vert.x fatjar Examples show how you can build fatjar with Maven or Gradle. HTTP/2 ShowcaseThis HTTP/2 Showcase application highlights the benefits of HTTP/2 when dealing with latency on the web. Camel Bridge examplesThe Vert.x Camel Bridge Examples show how you can use Apache Camel routes from the event bus. Micrometer metrics examplesThe Vert.x Micrometer metrics examples show how to collect Vert.x metrics with Micrometer and send them to backends such as Prometheus or InfluxDB. GraphQL examplesThe Vert.x Web GraphQL examples contain simple client/server GraphQL applications built with Vert.x Web GraphQL and the GraphQL-Java library. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论