Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/krzemin/scalajs-saper
- Owner: krzemin
- Created: 2014-11-27T21:30:07.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-30T10:26:25.000Z (about 10 years ago)
- Last Synced: 2024-05-02T01:32:28.082Z (8 months ago)
- Language: Scala
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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