Yeoman Scala.js Angular generator
This generator is based on the fabulous Scala.js Angular example: https://github.com/greencatsoft/scalajs-angular-todomvc
Make sure that you have sbt
installed, if not simply fallow the instructions for your operating system.
Install the Yeoman generator.
npm install -g generator-scalajs-angular
Run the generator to setup your project:
yo scalajs-angular
This will scaffold the project structure and run sbt compile
.
Note: First run might take some time due to dependencies download.
.
├── build.sbt
├── project
│ ├── Build.scala
│ ├── build.properties
│ ├── plugins.sbt
├── scalajs
│ ├── src
└── scalajvm
├── app
├── conf
├── public
Scalajvm contains the Play backend. Scalajs the Scala.js Angular application.
When the generator has finished it work execute:
sbt run
Navigate to http://localhost:9000 in your browser.
You should see similar page:
Apache 2.0