Skip to content

mohe2015/bachelor-thesis-collaborative-text-editing

Repository files navigation

text-rdt

Setup

nix shell nixpkgs#sbt nixpkgs#openjdk21 nixpkgs#nodejs
codium .

cd text-rdt
nix develop .#text-rdt-sbt-tests-thesis
#npm install
npm run build -- --base=./ # TODO split this up
npm run preview

cd text-rdt
nix develop .#text-rdt-sbt-tests-thesis
sbt "testOnly text_rdt.ComplexAVLBrowserFugueScalaCheckSuite"

COTURN for demo

sudo docker run -d --network=host docker.io/coturn/coturn --verbose --lt-cred-mech --user moritz:password --realm text-rdt

Troubleshooting

Delete caches

rm -R ~/.ivy2/ ~/.cache/scalablytyped/

IDE

IntelliJ

To fix import errors in the tests of the shared module, go to Module Settings -> Dependencies -> Add -> Module Dependency and add the JVM module.

Updating

sbt dependencyUpdates

Testing

sbt
textrdtJVM/testOnly -- --exclude-tags=browser
textrdtJVM/testOnly -- --exclude-tags=browser,scalacheck

textrdtJVM/testQuick -- --exclude-tags=browser

testOnly -- -F

Coverage

npm run build && npm run preview
sbt clean coverage textrdtJVM/test coverageReport

Development

npm run dev
sbt ~fastLinkJS # always keep this in background so tests have up-to-date code