Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krzemin/scalajs-saper

Simple miner implementation in scalajs
https://github.com/krzemin/scalajs-saper

Last synced: about 2 months ago
JSON representation

Simple miner implementation in scalajs

Awesome Lists containing this project

README

        

# Play Framework with Scala.js

This is a simple example application showing how you can integrate a Play project with a Scala.js project.

The application contains three directories:
* `scalajvm` Play application (server side)
* `scalajs` Scala.js application (client side)
* `scala` scala code that you want to share between scalajs and scalajvm (both client and server sides)

## Run the application
```shell
$ sbt
> run
$ open http://localhost:9000
```

## IDE integration

### Eclipse

1. `$ sbt eclipse`
2. Inside Eclipse, `File/Import/General/Existing project...`, choose the root folder to import the projects

### IntelliJ

1. `$ sbt gen-idea`
2. Inside IntelliJ, `File/Open...`, choose the root folder to import all the projects (do *not* use `Import Project...` or `Import Module...`)

## Notes
* `fastOptJS` is triggered when compiling (works with `compile`, `~compile`, `run`, `~run`)
* `fullOptJS` is triggered when calling Play `start`, `stage` or `dist` command
* The SourceMaps controller returns scala files in dev mode only