Giter VIP home page Giter VIP logo

linkeddataverse's Introduction

Example application written in Scala.js

This is a barebone example of an application written in Scala.js.

Get started

To get started, open sbt in this example project, and execute the task fastOptJS. This creates the file target/scala-2.11/example-fastopt.js. You can now open index-fastopt.html in your favorite Web browser! (Requires that you disable CORS requirements to do cross-domain requests: for example, you need to run Chrome with the --disable-web-security flag)

During development, it is useful to use ~fastOptJS in sbt, so that each time you save a source file, a compilation of the project is triggered. Hence only a refresh of your Web page is needed to see the effects of your changes.

Run the tests

To run the test suite, execute the task test. If you have installed Node.js, you can also run fastOptStage::test which is faster.

The fully optimized version

For ultimate code size reduction, use fullOptJS. This will take several seconds to execute, so typically you only use this for the final, production version of your application. While index-fastopt.html refers to the JavaScript emitted by fastOptJS, index.html refers to the optimized JavaScript emitted by fullOptJS.

Vis controls

Keys

w/s/a/d: pan up/down/left/right q/e: pan in/out 1/2/3/4 move to document head (if loaded) enter start from new URI

Mouse

left click: select item & zoom. right click: select item

Clicking a select item loads the URI, or open/closes a BNode.

left click & drag: rotate around selected item shift & drag: pan right click & drag: pan scroll wheel: zoom

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.