There are two approaches to start the development cycle
-
Use loop:
Simply execute
npm run start, it will build and start the server of theexampleproject -
Alternatively, you can manually lauch the webapp and the
exampleproject's server:-
Example project
This project is created to facilitate the development project, it's located in the
examplefolder,-
Compile the project
sbt example/compile -
Launch the main class
com.criteo.slab.example.Launcher
-
-
Web application
src/main/webappcontains all web application code and resources.-
Install npm packages
npm install -
Start web dev server
npm run serve -- --env.serverPort=$SERVER_PORTwhere
SERVER_PORTshould be the port of SLAB web server instance
-
-
-
Generate a package for all supported Scala versions
sbt +package -
Test Scala code
sbt test -
Test JavaScript code
npm run test