Giter Club home page Giter Club logo

kordapt's Introduction

Kordapt

What's Kordapt
Quick Start
Usage

What's Kordapt

Kordapt is an opensource java framework for easily building in a consistent and modular manner, services that exist on The Core. The framework makes extensive use of leading technologies such as Gradle and Spring. It makes development easy by providing gradle scripts(generators) that utilize Antlr and String template for generating plumbing code of a service and its models. It further promotes modularization by providing various plugins to help with plumbing that suits the requirements of your project such as hibernate.

Kordapt exposes an api-definition for the services and models created in a language agnostic manner by utilizing a set of yaml files. This allows any alternative language to java to consume and understand the api-definition by mapping that language to the api-definition.

Kordapt aims at simplifying the development process by aiding your choice of middleware technologies, libraries and frameworks, so that you are able to focus solely on your business logic.

Quick Start

The following is all done via build.gradle

Add dependencies

Add maven repositories and the kordapt gradle plugin dependency, then apply it

buildscript{
    repositories {
        mavenLocal()
        mavenCentral()
    }

    dependencies {
        classpath 'com.korwe:kordapt-gradle-plugin:1.1.1'
    }
}

apply plugin: 'kordapt'

repositories {
    jcenter()
    mavenLocal()
    mavenCentral()
}


dependencies {
    compile 'com.korwe:kordapt-core:1.1.1'
}

Configure

kordapt{
    defaultPackage = "my.company.projectName"
}

Full set of Configuration options

Initialize project

On the command-line, now run

gradle kinit

You will now have a kordapt project with the standard Structure

Usage

Generators

Generate Service

Generate the full plumbing for a service:

gradle kgenerate -Pinput="<ServiceName> <ReturnType>:<functionName>(<params>)"

Example:

gradle kgenerate -Pinput="HelloWorldService ArbitraryType:firstFunction() void:secondFunction(Integer inputNumber)"

Full Documentation

Generate Model

Generate the full plumbing for a model:

gradle kgenerate -Pinput="<ModelName> <AttributeType>:<attributeName>"

Example:

gradle kgenerate -Pinput="MyModel ArbitraryType:firstAttribute String:secondAttribute"

Full Documentation

kordapt's People

Contributors

tjad avatar dbld avatar

Watchers

 avatar 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.