Giter VIP home page Giter VIP logo

scala-native-example-app's Introduction

scala-native-example-app

An example project showing how to use Scala-Native in SBT, together with third party libraries (in this case Scalatags) and a test suite (using uTest).

Installing Scala-Native

First, you need to install Scala-Native's external dependencies. This is described here for each operating system:

This should be relatively straightforward and not cause any problems. Make sure you install the packages labeled optional, as they are required for this project.

Using this project

You should be able to import this project into IntelliJ-IDEA or any other Scala IDE or editor without issue.

To compile-and-run:

sbt run

To build an executable without running:

sbt nativeLink

To then run that executable:

./target/scala-2.11/scala-native-example-app-out

This should look like:

Run

To run tests:

sbt test

This should look like:

Tests

You can of course use the full functionality of uTest to select which tests to run.

That's it!

That's all that is necessary to try using this project. Feel free to try building larger applications using Scala-Native using this template, or trying out some of the other third-party libraries that are available for Scala-Native:

"com.lihaoyi" %%% "utest" % "0.5.3"
"com.lihaoyi" %%% "sourcecode" % "0.1.4"
"com.lihaoyi" %%% "fastparse" % "0.4.4"
"com.lihaoyi" %%% "fansi" % "0.2.5"
"com.lihaoyi" %%% "scalatags" % "0.6.7"
"com.lihaoyi" %%% "pprint" % "0.5.3"

scala-native-example-app's People

Contributors

francisdb avatar lihaoyi avatar zoosky 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.