Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.52 KB

compile.md

File metadata and controls

48 lines (36 loc) · 1.52 KB

compile

to compile papa-carlo, you need

the folder of the sbt executable should now be in your PATH environment variable

navigate to the papa-carlo project folder, open a terminal, and run

sbt

sbt should download dependencies, and show the sbt console

[info] welcome to sbt
....
[info] started sbt server
sbt:root> 

enter ; reload; jvm/test to compile the papa-carlo library for java.
to compile again, press arrow up and hit enter

enter jvm/packageBin to build a JAR package to jvm/target/

enter js-demo/fullLinkJS to build the JavaScript demo with scala-js.
This will generate js/demo/target/scala-2.13/js-demo-opt/main.js, which is included by js/demo/client.js and js/demo/server.js, which are included by js/demo/index.html.
To use the demo, start an HTTP server in the folder js/demo/.
for example on Linux:

cd js/demo/
python -m http.server 8000 &
xdg-open http://localhost:8000/index.html

enter js-demo/fastLinkJS to build the JavaScript demo in development mode. in js/demo/client.js and js/demo/server.js, replace js-demo-opt/main.js with js-demo-fastopt/main.js