Kotlin based JHipster

Overview

About

JHipster is a development platform to quickly generate, develop, and deploy modern web applications and microservice architectures. We support many frontend technologies, including Angular, React, and Vue. We even have mobile app support for Ionic and React Native! On the backend, we support Spring Boot (with Java or Kotlin), Micronaut, Quarkus, Node.js, and .NET. For deployment, we embrace cloud native principles with Docker and Kubernetes. Deployment support exists for AWS, Azure, Cloud Foundry, Google Cloud Platform, Heroku, and OpenShift.

Documentation and information about KHipster is available here

Full documentation and information about JHipster is available here


Build status

Angular

React

Webflux

Microservices

KHipster Generated Applications CI

Greetings, Kotlin Hipster!

NPM version Dependency Status

This project adds Kotlin to the JHipster application ๐Ÿ˜Ž . It is based on JHipster Blueprint ๐Ÿ”ต .

๐Ÿš€ How to get started

Install the package with npm install -g generator-jhipster-kotlin

  1. Make sure you have yo installed with npm install -g yo
  2. Install the package with npm install -g generator-jhipster-kotlin
  3. Generate the application with khipster

Using Docker

Download the Dockerfile:

mkdir docker
cd docker
wget https://github.com/jhipster/jhipster-kotlin/raw/main/docker/Dockerfile

Build the Docker images:

docker build -t jhipster-generator-kotlin:latest .

Make a folder where you want to generate the Service:

mkdir service
cd service

Run the generator from image to generate service:

docker run -it --rm -v $PWD:/home/khipster/app jhipster-generator-kotlin

Run and attach interactive shell to the generator docker container to work from inside the running container:

docker run -it --rm -v $PWD:/home/khipster/app jhipster-generator-kotlin /bin/bash

๐Ÿšฆ What we have now

โœ… General App generation - khipster

โœ… Spring Controller - khipster spring-controller <controller-name>

โœ… Spring Service - khipster spring-service <service-name>

โœ… Entity generation - khipster entity <entity-name>

โค๏ธ for community

Found an issue, let us know here.

Interested in contributing, check out our contributing guide to get started.

Any questions sendilkumarn

Comments
  • Error running KHipster command

    Error running KHipster command

    Overview of the issue

    Khipster is reporting that the generator-jhipster-kotlin is not installed while running the khipster command, even though generator-jhipster-kotlin is installed.

    I am using yarn

    Motivation for or Use Case

    Here is the full cli output: ` khipster INFO! Using JHipster version installed globally INFO! Running default command INFO! Executing jhipster:app INFO! Options: blueprints: kotlin, from-cli: true

        โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
        โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘ โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—
        โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘    โ–ˆโ–ˆโ•‘    โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—     โ–ˆโ–ˆโ•‘    โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•
    

    โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ•— โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ• โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ• โ•šโ•โ• โ•šโ•โ•

                            https://www.jhipster.tech
    

    Welcome to JHipster v6.2.0 Application files will be generated in folder: D:\web\Research\test\nosql


    Documentation for creating an application is at https://www.jhipster.tech/creating-an-app/ If you find JHipster useful, consider sponsoring the project at https://opencollective.com/generator-jhipster


    events.js:174 throw er; // Unhandled 'error' event ^

    Error: The generator-jhipster-kotlin blueprint provided is not installed. Please install it using command npm i -g generator-jhipster-kotlin. at Environment.error (C:\Users\Arif Rabbani\AppData\Local\Yarn\Data\global\node_modules\generator-jhipster\node_modules\yeoman-environment\lib\environment.js:176:40) at module.exports.error (C:\Users\Arif Rabbani\AppData\Local\Yarn\Data\global\node_modules\generator-jhipster\generators\generator-base.js:1448:18) at shelljs.exec (C:\Users\Arif Rabbani\AppData\Local\Yarn\Data\global\node_modules\generator-jhipster\generators\generator-base-private.js:839:22) at C:\Users\Arif Rabbani\AppData\Local\Yarn\Data\global\node_modules\shelljs\src\exec.js:127:9 at ChildProcess.exithandler (child_process.js:301:5) at ChildProcess.emit (events.js:198:13) at maybeClose (internal/child_process.js:982:16) at Socket.stream.socket.on (internal/child_process.js:389:11) at Socket.emit (events.js:198:13) at Pipe._handle.close (net.js:606:12) Emitted 'error' event at: at Environment.error (C:\Users\Arif Rabbani\AppData\Local\Yarn\Data\global\node_modules\generator-jhipster\node_modules\yeoman-environment\lib\environment.js:178:15) at module.exports.error (C:\Users\Arif Rabbani\AppData\Local\Yarn\Data\global\node_modules\generator-jhipster\generators\generator-base.js:1448:18) [... lines matching original stack trace ...] at Pipe._handle.close (net.js:606:12) `

    Reproduce the error

    Related issues

    Link to PR (if any)

    KHipster Version(s)

    KHipster version: 1.1.0

    • [] Checking this box is mandatory (this is just to show you read everything)
    opened by arabbani 25
  • installation not detected in JHipster

    installation not detected in JHipster

    When I try to generate a project with JHipster using this plugin, JHipster complains that it is not installed.

    Following the instructions in the readme:

    $ npm install -g generator-jhipster-kotlin
    + [email protected]
    updated 1 package in 12.901s
    $ jhipster --blueprint kotlin
    INFO! Using JHipster version installed globally
    INFO! Running default command
    INFO! Executing jhipster:app
    INFO! Options: blueprint: kotlin, from-cli: true
    
    ...
    
    Welcome to JHipster v5.7.0
    
    ...
    
    events.js:167
          throw er; // Unhandled 'error' event
          ^
    
    Error: ERROR! The generator-jhipster-kotlin blueprint provided is not installed. Please install it using command npm i -g generator-jhipster-kotlin.
        at Environment.error (/Users/nglenn/.config/yarn/global/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:157:40)
        at module.exports.error (/Users/nglenn/.config/yarn/global/node_modules/generator-jhipster/generators/generator-base.js:2444:18)
        at shelljs.exec (/Users/nglenn/.config/yarn/global/node_modules/generator-jhipster/generators/generator-base-private.js:794:22)
        at /Users/nglenn/.config/yarn/global/node_modules/shelljs/src/exec.js:124:9
        at ChildProcess.exithandler (child_process.js:301:5)
        at ChildProcess.emit (events.js:182:13)
        at maybeClose (internal/child_process.js:978:16)
        at Socket.stream.socket.on (internal/child_process.js:395:11)
        at Socket.emit (events.js:182:13)
        at Pipe._handle.close (net.js:616:12)
    Emitted 'error' event at:
        at Environment.error (/Users/nglenn/.config/yarn/global/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:159:15)
        at module.exports.error (/Users/nglenn/.config/yarn/global/node_modules/generator-jhipster/generators/generator-base.js:2444:18)
        [... lines matching original stack trace ...]
        at Pipe._handle.close (net.js:616:12)
    

    JHipster version v5.7.0, Node version v11.3.0

    [X] Checking this box is mandatory (this is just to show you read everything)

    opened by garfieldnate 21
  • Use build.gradle.kts for Gradle

    Use build.gradle.kts for Gradle

    Overview of the issue

    I think it'd be a cool feature to use Kotlin for the build.gradle file.

    Motivation for or Use Case

    It might not be a huge value-add, but I've enjoyed working with Kotlin in my Gradle build in a recent project.

    Related issues

    If you agree this is a good idea, I can create an issue in the main JHipster project to add a bug bounty to it. I'd also be happy to help more with this project. Is it possible to document how you go about updating it for new JHipster releases?

    • [x] Checking this box is mandatory (this is just to show you read everything)
    $$ bug-bounty ๐Ÿ’ธ $200 
    opened by mraible 20
  • Feature parity with parent Java project

    Feature parity with parent Java project

    Overview of the issue

    This is a list of generators and their sub-packages provided by the parent JHipster project in Java and need to be migrated to Kotlin:

    1st level: Generators: 2nd level: Packages

    ~- [ ] aws-containers~ Removing this based on our discussion.

    • [x] entity-server
    • [x] server
      • [x] aop
      • [x] client (93)
      • [x] config (#86)
      • [x] domain (#91)
      • [x] gateway (#91)
      • [x] repository (#91)
      • [x] security (#91)
      • [x] service (#91)
      • [x] web (#91)
      • [x] cucumber (tests only) (#91)
    • [x] spring-controller
    • [x] spring-service

    NOTES:

    1. Tests are not mentioned in the list but should be done alongside the main code
    2. The order is alphabetical

    Motivation for or Use Case

    Achieve feature parity with parent JHipster Java project

    JHipster Version(s)

    6.x

    [x] Checking this box is mandatory (this is just to show you read everything)

    opened by pvliss 18
  • Migrate server main and test configuration packages

    Migrate server main and test configuration packages

    Migrate server main and test configuration packages

    Also contains the following changes:

    • Add missing class ApplicationWebXml
    • Fix in EntityResource.kt.ejs for reactive apps
    • Remove unused constant kotlinConstants from index.js
    • Add test classes AbstractCassandraTest.kt.ejs and CassandraKeyspaceUnitTest.kt.ejs

    Relates to #85

    opened by pvliss 16
  • Migrate entity generator into Kotlin

    Migrate entity generator into Kotlin

    Migrate the existing entity generator to Kotlin

    This will include

    • [ ] migrating the resource files
    • [ ] migrating the repositories
    • [ ] migrating the domain
    • [ ] migrating the service layer
    help wanted good first issue 
    opened by sendilkumarn 16
  • khipster upgrade fails

    khipster upgrade fails

    Overview of the issue

    Upgrading a khipster application using 'khipster upgrade' fails. I get the following error: .... Looking for latest generator-jhipster-kotlin version... 1.12.1 ERROR! Invalid Version: undefined ....

    Motivation for or Use Case

    Like to upgrade my bigger khipster application to 1.12.1. Unfortunately I have many problems getting that done. To investigate the basics I wanted to check if a newly generated khipster app can be upgraded without errors.

    Reproduce the error

    npm install -g generator-jhipster-kotlin mkdir test cd test git init khipster ... Answer the questions (see below for .yo-rc.json) basically keep defaults; only changes: grades and react .. git add . git commit -am "initial creation"

    khipster upgrade

    This results in INFO! Using JHipster version installed globally INFO! No custom sharedOptions found within blueprint: generator-jhipster-kotlin at /Users/user/Development/upgrade/test/node_modules/generator-jhipster-kotlin INFO! No custom commands found within blueprint: generator-jhipster-kotlin at /Users/user/Development/upgrade/test/node_modules/generator-jhipster-kotlin Welcome to the JHipster Upgrade Sub-Generator This will upgrade your current application codebase to the latest JHipster version โœ” Checking for new blueprint versions Looking for latest generator-jhipster-kotlin version... 1.12.1 ERROR! Invalid Version: undefined TypeError: Invalid Version: undefined at new SemVer (/Users/user/.nvm/versions/node/v14.17.0/lib/node_modules/generator-jhipster-kotlin/node_modules/generator-jhipster/node_modules/semver/classes/semver.js:19:13) at compare (/Users/user/.nvm/versions/node/v14.17.0/lib/node_modules/generator-jhipster-kotlin/node_modules/generator-jhipster/node_modules/semver/functions/compare.js:3:3) at Object.lt (/Users/user/.nvm/versions/node/v14.17.0/lib/node_modules/generator-jhipster-kotlin/node_modules/generator-jhipster/node_modules/semver/functions/lt.js:2:29) at /Users/user/.nvm/versions/node/v14.17.0/lib/node_modules/generator-jhipster-kotlin/node_modules/generator-jhipster/generators/upgrade/index.js:263:28 at new Promise () at /Users/user/.nvm/versions/node/v14.17.0/lib/node_modules/generator-jhipster-kotlin/node_modules/generator-jhipster/generators/upgrade/index.js:260:22 at Array.map () at module.exports.checkLatestBlueprintVersions (/Users/user/.nvm/versions/node/v14.17.0/lib/node_modules/generator-jhipster-kotlin/node_modules/generator-jhipster/generators/upgrade/index.js:259:14) at Object. (/Users/user/.nvm/versions/node/v14.17.0/lib/node_modules/generator-jhipster-kotlin/node_modules/yeoman-generator/lib/index.js:1009:25)

    Related issues

    Link to PR (if any)

    KHipster Version(s)

    1.12.1

    • [x] Checking this box is mandatory (this is just to show you read everything)

    .yo-rc.json { "generator-jhipster": { "blueprints": [ { "name": "generator-jhipster-kotlin", "version": "1.12.1" } ], "otherModules": [ { "name": "generator-jhipster-kotlin", "version": "1.12.1" } ], "applicationType": "monolith", "baseName": "test", "jhipsterVersion": "7.0.1", "skipClient": false, "skipServer": false, "skipUserManagement": false, "skipCheckLengthOfIdentifier": false, "skipFakeData": false, "jhiPrefix": "jhi", "entitySuffix": "", "dtoSuffix": "DTO", "testFrameworks": [], "pages": [], "creationTimestamp": 1624602504902, "serviceDiscoveryType": false, "reactive": false, "authenticationType": "jwt", "packageName": "com.mycompany.myapp", "serverPort": "8080", "cacheProvider": "ehcache", "enableHibernateCache": true, "databaseType": "sql", "devDatabaseType": "h2Disk", "prodDatabaseType": "postgresql", "buildTool": "gradle", "serverSideOptions": [], "websocket": false, "searchEngine": false, "messageBroker": false, "enableSwaggerCodegen": false, "clientFramework": "react", "withAdminUi": true, "clientTheme": "none", "enableTranslation": true, "nativeLanguage": "en", "packageFolder": "com/mycompany/myapp", "jwtSecretKey": "YTEwMzFlZGM3NDA0ZTNlOWM0OWI2ZmY3MmUwZjdhNDYyN2RkYmUyZWM2YWEzZTZkOGUyNWVmYTdkN2RhYTIxNDk4YmY0YzdiM2Y0MzU0MWRmYTM4NzJjYTA3NmY1ODkxYWJjMDE5ZTViZDVjMDZiODJlYTFjMGU3MzIwZWFjZTY=", "clientPackageManager": "npm", "clientThemeVariant": "", "languages": ["en"] } }

    opened by matze42 15
  • #139 Convert usages of Optional to Kotlin nullables - WIP

    #139 Convert usages of Optional to Kotlin nullables - WIP

    Hello Team,

    I'm creating a PR to present the progress in work on the issue. That changes allows to generate simple microservice with SQL database with Kotlin nullable instead of Optionals.

    I'm planning to continue work in next few days to cover features with required change. Please let me know what do you think about that approach.

    Please note that this code is not ready to merge!

    opened by kozub 12
  • Error executing docker-compose on install

    Error executing docker-compose on install

    Overview of the issue

    Using the latest version, when I run khipster jdl reactive-ms, it has an error when generating Docker Compose files:

    Screen Shot 2021-05-02 at 7 28 08 PM
    INFO! No custom sharedOptions found within blueprint: generator-jhipster-kotlin at /usr/local/lib/node_modules/generator-jhipster-kotlin
    INFO! No custom commands found within blueprint: generator-jhipster-kotlin at /usr/local/lib/node_modules/generator-jhipster-kotlin
    error: unknown option '--no-skip-ktlint-format'
    INFO! Generator docker-compose child process exited with code 1
    ERROR! Error executing docker-compose --no-force --no-dry-run --no-whitespace --no-bail --no-skip-regenerate --no-skip-yo-resolve --from-jdl --blueprints kotlin --no-skip-cache --no-skip-install --no-force-install --no-ask-answered --no-defaults --no-skip-git --no-skip-ktlint-format --skip-prompts
    Error: Error executing docker-compose --no-force --no-dry-run --no-whitespace --no-bail --no-skip-regenerate --no-skip-yo-resolve --from-jdl --blueprints kotlin --no-skip-cache --no-skip-install --no-force-install --no-ask-answered --no-defaults --no-skip-git --no-skip-ktlint-format --skip-prompts
        at ChildProcess.<anonymous> (/usr/local/lib/node_modules/generator-jhipster-kotlin/node_modules/generator-jhipster/cli/import-jdl.js:183:16)
        at ChildProcess.emit (events.js:315:20)
        at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
    

    Motivation for or Use Case

    I'd like to be able to write my reactive microservices with Kotlin!

    Reproduce the error

    khipster jdl reactive-ms
    

    Related issues

    Link to PR (if any)

    KHipster Version(s)

    1.12.1

    • [x] Checking this box is mandatory (this is just to show you read everything)
    opened by mraible 11
  • khipster hangs in  first step

    khipster hangs in first step

    Overview of the issue

    Motivation for or Use Case

    Reproduce the error

    Related issues

    Link to PR (if any)

    JHipster Version(s)

    • [ ] Checking this box is mandatory (this is just to show you read everything)
    opened by skadoor 11
  • Code improvements

    Code improvements

    Refactor utility and constant objects and move functions and constants to top level. No need for classes or objects in Kotlin.

    NOTE: For mixed projects including also Java code the functions and constants can be accessed by adding suffix Kt, e.g. from AuthoritiesConstants.USER should be changed to AuthoritiesConstantsKt.USER

    opened by pvliss 11
  • chore(deps): bump json5 from 1.0.1 to 1.0.2

    chore(deps): bump json5 from 1.0.1 to 1.0.2

    Bumps json5 from 1.0.1 to 1.0.2.

    Release notes

    Sourced from json5's releases.

    v1.0.2

    • Fix: Properties with the name __proto__ are added to objects and arrays. (#199) This also fixes a prototype pollution vulnerability reported by Jonathan Gregson! (#295). This has been backported to v1. (#298)
    Changelog

    Sourced from json5's changelog.

    Unreleased [code, diff]

    v2.2.3 [code, diff]

    v2.2.2 [code, diff]

    • Fix: Properties with the name __proto__ are added to objects and arrays. (#199) This also fixes a prototype pollution vulnerability reported by Jonathan Gregson! (#295).

    v2.2.1 [code, diff]

    • Fix: Removed dependence on minimist to patch CVE-2021-44906. (#266)

    v2.2.0 [code, diff]

    • New: Accurate and documented TypeScript declarations are now included. There is no need to install @types/json5. (#236, #244)

    v2.1.3 [code, diff]

    • Fix: An out of memory bug when parsing numbers has been fixed. (#228, #229)

    v2.1.2 [code, diff]

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Feature/kotlin coroutines

    Feature/kotlin coroutines

    #309 Add coroutines option for reactive application generation.

    TODO list:

    • [x] add option
    • [ ] databases
      • [ ] sql
      • [ ] Mongodb
      • [ ] Neo4j
      • [ ] Couchbase
      • [ ] Cassandra
      • [ ] No
    • [x] support fro elasticsearch
    • [x] user contollers
    • [x] user services
    • [x] user repositories
    • [ ] entity contollers
    • [ ] entity services
    • [ ] entity repositories
    • [ ] tests
    • [ ] compatible with Reactor
    opened by PiperDing 1
  • Error running generator app: SyntaxError: Missing catch or finally after try while compiling ejs

    Error running generator app: SyntaxError: Missing catch or finally after try while compiling ejs

    Overview of the issue

    Error generating app, when an Entity has an @Id String field (see JDL example below).

    Error
    โœ– An error occured while running jhipster:bootstrap#commitFiles
    Error running generator app: SyntaxError: Missing catch or finally after try while compiling ejs
    
    If the above error is not helpful, you may want to try EJS-Lint:
    https://github.com/RyanZim/EJS-Lint
    Or, if you meant to create an async function, pass `async: true` as an option.
    SyntaxError: Missing catch or finally after try while compiling ejs
    
    If the above error is not helpful, you may want to try EJS-Lint:
    https://github.com/RyanZim/EJS-Lint
    Or, if you meant to create an async function, pass `async: true` as an option.
        at new Function (<anonymous>)
        at Template.compile (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\ejs\lib\ejs.js:673:12)
        at Object.compile (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\ejs\lib\ejs.js:398:16)
        at TemplateFile.compile (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\generator-jhipster\utils\multi-step-transform\template-file.js:43:26)
        at TemplateFileFs.add (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\generator-jhipster\utils\multi-step-transform\template-file-fs.js:31:18)
        at MultiStepTransform.queuedTransform (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\generator-jhipster\utils\multi-step-transform\index.js:21:50)
        at C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\p-transform\index.js:100:31   
        at run (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\p-queue\dist\index.js:157:104)
        at PQueue._tryToStartAnother (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\p-queue\dist\index.js:105:17)
        at C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\p-queue\dist\index.js:171:18  
    ERROR! Missing catch or finally after try while compiling ejs
    

    Reproduce the error

    JDL:

    application {
        config {
        baseName sample
        packageName sample
        applicationType microservice
        authenticationType oauth2
        serverPort 8081
        buildTool gradle
        cacheProvider no
        clientFramework no
        databaseType sql
        prodDatabaseType postgresql
        devDatabaseType postgresql
        serviceDiscoveryType no
        enableTranslation false
        messageBroker kafka
        skipClient true
        skipUserManagement true
      }
      entities *
    }
    
    entity Abc0 {
        @Id key String
        otherField String
    }
    

    Generated with: khipster import-jdl app.jdl --with-entities --skip-git --skip-install --force

    KHipster Version(s)

    1.16.0

    • [x] Checking this box is mandatory (this is just to show you read everything)
    opened by egvimo 1
  • [Feature Discussion] Khipster with pure Kotlin

    [Feature Discussion] Khipster with pure Kotlin

    Not really an issue, more of a question/idea:

    Currently, Spring Boot and some popular front-end framework (React/Angular/Vue) are used to generate a Kotlin webapplication.

    Are there any plans to make a generator for a pure Kotlin generated application? (where developers can code 100% in Kotlin)

    For example:

    1. Backend: Ktor (https://ktor.io/)
    2. Frontend: Kvsion (https://github.com/rjaros/kvision)
    3. Build: Gradle for Kotlin DLS (https://docs.gradle.org/current/userguide/kotlin_dsl.html)
    opened by assimbly 3
Releases(1.16.0)
  • 1.16.0(Nov 9, 2022)

  • 1.15.0(Apr 18, 2022)

    • Supports JHipster version 7.8.1
    • Revamped GitHub Actions
    • Imported SequenceGenerator on all sql based database types #321
    • Removed val from token provider #329
    Source code(tar.gz)
    Source code(zip)
  • 1.14.0(Jan 4, 2022)

  • 1.13.0(Nov 25, 2021)

    • Supports JHipster v7.4.0
    • Supports Kotlin v1.6.0
    • Upgraded Detekt to v1.18.1
    • Upgraded ktlint-maven to v1.11.1
    • Upgraded ktlint-gradle to v10.2.0
    • Upgraded maven-autorun to v3.0.0
    Source code(tar.gz)
    Source code(zip)
  • 1.12.1(May 2, 2021)

  • 1.11.0(Nov 8, 2020)

    Whatโ€™s Changed

    • Fix lint warnings (#257) @isaul32
    • Upgrade to Node.js 12.18.3 LTS (#256) @pascalgrimaud
    • delete duplicated log output (#251) @mustafabayar
    • build(deps): bump lodash from 4.17.15 to 4.17.19 (#250) @dependabot
    • Remove side affect of mock DateTimeProvider (#247) @Romancha
    • Setup Code Scanning (#239) @sendilkumarn
    • update master to main branch (#260) @sendilkumarn
    Source code(tar.gz)
    Source code(zip)
  • 1.9.0(Jul 4, 2020)

    Whatโ€™s Changed

    • feat: upgrade to 6.10.1 (#245) @sendilkumarn
    • fix: template string (#244) @sendilkumarn
    • feat: use Kotlin String template for logs (#243) @sendilkumarn
    • Added missing brackets when generating User.kt (#242) @leozin
    • Feat/upgrade to jhipster 6.10.0 (#241) @sendilkumarn
    Source code(tar.gz)
    Source code(zip)
Owner
JHipster
JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
JHipster
Maxibon kata for Kotlin Developers. The main goal is to practice property based testing.

Kata Maxibon for Kotlin. We are here to practice property based testing. We are going to use KotlinTest to write our tests. We are going to practice p

Karumi 44 Oct 3, 2022
TheMovies ๐ŸŽฌ A demo project for The Movie DB based on Kotlin MVVM architecture and material design & animations.

A simple project for The Movie DB based on Kotlin MVVM clean architecture and material design & animations. How to build on your environment

Jaewoong Eum 420 Nov 29, 2022
Kotlin backend based on the Clean Architecture principles. Ktor, JWT, Exposed, Flyway, KGraphQL/GraphQL generated endpoints, Gradle.

Kotlin Clean Architecture Backend Kotlin backend based on the Clean Architecture principles. The application is separated into three modules: Domain,

null 255 Jan 3, 2023
A Kotlin-based combo editor

KtEdit A Kotlin-based combo editor Features Remove Duplicates Shuffle Lines Split File More features will be adding in future updates. Benchmarks Remo

null 0 Jan 14, 2022
A kotlin based server for the milky store mobile application

Milky Store backend server A kotlin ?? ?? based backend server to power up the milky store android application FEATURES : Secure serialisation ?? lead

The X 3 Oct 21, 2021
Kotlin Based Spring Boot ETL project

Adverity ETL REST API (AERA) A simple ETL Spring Boot application with H2. This API provides the following basics functionalities: Endpoint that retur

null 0 Oct 11, 2021
Spring Boot project scaffold written in Kotlin, which is based on the Official Guide.

Kotlin-Spring-Boot Spring Boot project scaffold written in Kotlin, which is based on the Official Guide. Development environment Windows choco install

idea2app 1 Feb 27, 2022
XliteKt is an open-source, and forever open-source Kotlin based OSRS Emulator for educational purposes.

xlitekt Introduction XliteKt is an open-source, and forever open-source Kotlin based OSRS Emulator for educational purposes. Currently built around th

Runetopic 6 Dec 16, 2022
EVM-based Chains With Kotlin

EVM-based Chains The source data is in _data/chains. Each chain has its own file with the filename being the CAIP-2 representation as name and .json a

Alireza 1 Feb 10, 2022
Kreds - a thread-safe, idiomatic, coroutine based Redis client written in 100% Kotlin

Kreds Kreds is a thread-safe, idiomatic, coroutine based Redis client written in 100% Kotlin. Why Kreds? Kreds is designed to be EASY to use. Kreds ha

Abhijith Shivaswamy 117 Dec 23, 2022
Kotlin scripting environment based on TabooLib

Artifex Artifex ๆไพ›ไบ†ๅฎŒๅ–„็š„ Kotlin Script (.kts) ่ฟ่กŒ็Žฏๅขƒ๏ผŒไธ”ๆ”ฏๆŒ TabooLib ๅ…จ็‰นๆ€งใ€‚ val compiledScript = Artifex.api().scriptCompiler().compile { // ไผ ๅ…ฅๆบๆ–‡ไปถ it.

TABOO-PROJECT 19 Sep 11, 2022
โค๏ธ A sample Marvel heroes application based on MVVM (ViewModel, Coroutines, LiveData, Room, Repository, Koin) architecture.

MarvelHeroes MarvelHeroes is a demo application based on modern Android application tech-stacks and MVVM architecture. Fetching data from the network

Jaewoong Eum 1.2k Dec 19, 2022
๐Ÿฆ A Disney app using transformation motions based on MVVM (ViewModel, Coroutines, Flow, LiveData, Room, Repository, Koin) architecture.

DisneyMotions A demo Disney app using transformation motions based on MVVM architecture. The motion system is included in the 1.2.0-alpha05 released m

Jaewoong Eum 1.4k Jan 2, 2023
A simple demo project based on MVVM clean architecture and material design & animations.

GithubFollows A simple demo project based on MVVM clean architecture and material design & animations. Architecture Specs & Open-source libraries Mini

Jaewoong Eum 288 Dec 25, 2022
This project provides declarative camunda delegates for Spring based application

camunda-delegator-lib Features Declarative style for delegate code Generated delegates documentation and templates for camunda modeler(this feature is

Tinkoff.ru 27 Aug 12, 2022
ToDo App based on Modern Android Application tech-stacks and MVVM architecture.

ToDo App Task Management App based on Modern Android Application tech-stacks and MVVM architecture. Techs Used ?? Kotlin - First class and official pr

Rohit Sharma 12 Jul 22, 2022
A deep learning based mobile application for the multi-class classification of pneumonia into three categories via Chest X-rays

PneumoniaClassifier A deep learning based mobile application for the multi-class classification of pneumonia into three categories via Chest X-rays. W

Timilehin Aregbesola 2 Dec 15, 2021
A tip app which the user can use a screen bar to choose a tip based on the service, the total is then displayed.

Tip Calculator Spencer Damon Tippy Total computes the tip and total amount for a bill. The app uses the base amount and tip percentage to calculate th

Spencer Damon 0 Jan 3, 2022