Git Product home page Git Product logo

cloudopt-next's Introduction

Cloudopt Next

Cloudopt Next is a very lightweight micro-service framework based on kotlin and vertx for the Next generation. You can handle url parsing, data encapsulation, and Json output. Radically reducing development time and improving development experience. Cloudopt Next absorbed the ideas of Spring BootJFinalRestyVertx and other excellent projects, and not only had a excellent development experience, but also had a shallow learning curve.

Cloudopt Next has the following features:

Simple Minimalist design, almost no configuration, no dependence on tomcat, jetty and other web containers.

Asyn Based on vertx, it is easy to achieve high-performance asynchronous services.

Plugin Supports various components of the vertx system, and also supports the extension of functions through plug-ins. The official also provides a large number of useful plug-ins.

Chinese All Chinese documents, Chinese community to help Chinese developers get started quickly

Started

You can view the document by visiting the official website of Cloudopt Next, or you can go to example to see a simple example.

Route

Let's take a look at a simple route based on Cloudopt Next:

@API("/")
class IndexController : Resource() {
    @GET
    fun get(){
        renderHtml(view = "index")
    }
}
@API(value = "/")
public class IndexController extends Resource {
    @GET
    public void get(){
        View v = new View();
        v.setView("index");
        renderHtml(view);
    }
}

Run

fun main(args: Array<String>) {
    CloudoptServer.run()
}
public static void main(String args[]) {
    CloudoptServer.run();
}

SockJS

@SocketJS("/socket/api/*")
class SocketController : SocketJSResource {
    override fun handler(socket: SockJSSocket) {
        println(socket)
        socket.handler {message->
            println(message)
            socket.write("Hello world!")
        }
    }
}

Plugin

fun main(args: Array<String>) {
    CloudoptServer.addPlugin(TestPlugin())
    CloudoptServer.addPlugin(EventPlugin())
    CloudoptServer.run()
}

Getting help

Having trouble with Cloudopt Next? We’d like to help!

  • Follow our twitter to get the latest information.
  • Check the reference documentation carefully for specific code cases or common problems.
  • If you have a problem with the upgrade, check the upgrade instructions in the Wiki.
  • Send mail to [email protected].
  • Send issue to your question on GitHub, we will answer it as soon as possible.
  • If you are in China, you can also join the QQ group: 557692142.

Reporting Issues

Cloudopt Next uses GitHub’s integrated issue tracking system to record bugs and feature requests. If you want to raise an issue, please follow the recommendations below:

  • Before you log a bug, please search the issue tracker to see if someone has already reported the problem.
  • Please provide as much information as possible with the issue report, we like to know the version of Cloudopt Next that you are using, as well as your Operating System and JVM version.

License


Cloudopt Next is Open Source software released under the Apache 2.0 license.

cloudopt-next's People

Contributors

ccixyj avatar t-baby avatar

Watchers

 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.