Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krzemin/scalajs-wisielec
The popular Hangman game in polish version written in scalajs with play framework
https://github.com/krzemin/scalajs-wisielec
Last synced: about 2 months ago
JSON representation
The popular Hangman game in polish version written in scalajs with play framework
- Host: GitHub
- URL: https://github.com/krzemin/scalajs-wisielec
- Owner: krzemin
- Created: 2014-11-23T16:56:21.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-29T14:48:11.000Z (about 10 years ago)
- Last Synced: 2024-05-02T01:32:28.086Z (8 months ago)
- Language: Scala
- Homepage:
- Size: 6.78 MB
- Stars: 2
- Watchers: 2
- 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