Code Monkey home page Code Monkey logo

jsweet-examples's Introduction

JSweet examples

A set of simple examples to show what can be done in Java with the JSweet transpiler.

All these example are written in Java using the JSweet APIs (candies)] They are then transpiled to JavaScript by the JSweet transpiler.

  • Simple canvas drawing (canvasdrawing): demonstrates the use of HTML5 canvas. browse
  • Simple HTML form control (inputcontrol): demonstrates the use of HTML5 forms and inputs. browse
  • Simple jQuery (jquery): demonstrates the use of JQuery with JSweet. browse
  • Simple Angular (angularjs): demonstrates the use of Angular with JSweet. browse
  • Simple Knockout (knockoutjs): demonstrates the use of Knockout with JSweet. browse
  • Ray tracer (raytracer): draws a 3D scene, adapted from the TypeScript example page. browse
  • Todos (todomvc): demonstrates the use of Backbone and Underscore with JSweet, adapted from the TypeScript example page. browse
  • Blocks game (blocksgame): demonstrates how to write an HTML5 mobile game with JSweet. browse
  • Promises (promises): demonstrates the use of the latest EcmaScript6 Promise API. browse

Visit the live JSweet's example page (http://www.jsweet.org/examples) to browse the examples, run them and debug the Java code within your favorite browser. Note that all these examples are responsive and should work as well on a Web browser and on a mobile.

Visit also https://github.com/cincheo/jsweet-examples-threejs for some examples using the Threejs framework (WebGL-powered 3D)]

Usage

> git clone https://github.com/cincheo/jsweet-examples.git
> cd jsweet-examples
> mvn generate-sources
> firefox webapp/${example-name}/index.html

Prerequisites

The node and npm executables must be in the path (https://nodejs.org)] Install Maven (https://maven.apache.org/install.html)]

jsweet-examples's People

Contributors

renaudpawlak avatar lgrignon avatar monperrus avatar

Watchers

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