GithubHelp home page GithubHelp logo

hhy5277 / electron-java-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jreznot/electron-java-app

0.0 1.0 0.0 198 KB

Electron Java application - What if you could build Desktop applications on Java with HTML 5 UI

License: Apache License 2.0

JavaScript 24.29% Java 70.87% CSS 4.83%

electron-java-app's Introduction

Electron+Java Demo

Java Desktop Application with HTML 5 UI based on Electron and Vaadin.

Uses

  1. Node JS
  2. Electron
  3. Gradle
  4. JDK 8
  5. Jetty HTTP Server
  6. Vaadin Framework

Features

  1. Easy building with Gradle
  2. Jetty server with Web Sockets enabled
  3. Vaadin UI code in plain Java
  4. Bi-directional WebSocket connection with Vaadin Push and Jetty WebSocket module
  5. Two way communication between Electron and web application using javascript functions
  6. Auto start / stop of server side on application init / exit
  7. Custom window header

Want to know how to implement all the features? See complete tutorial: https://github.com/cuba-labs/java-electron-tutorial !

Try it!

Preparations

Build java application:

> gradlew build

Run debug version:

> gradlew runApp

Building standalone app

> gradlew bundleApp

Application will be bundled to build/bundle

If you want to see a real world application that is built with this approach take a look at CUBA Studio https://www.cuba-platform.com/discuss/t/cuba-studio-se-a-desktop-application-based-on-electron/2914

Screenshot

Demo Image

electron-java-app's People

Contributors

bwbohl avatar jreznot avatar llyorshch 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.