-
Prerequisites: install SBT, Java (21), Node (>= 18) and PostgreSQL (>= 9.4).
-
Create PostgreSQL database
$ createuser -SPRD exam $ createdb exam --owner=exam
For tests
$ createdb exam_test --owner=exam
Requires that you have pg_hba.conf set up to accept local connections etc.
Note that you can configure database related parameters (and others) in the dev config file (/conf/dev.conf) -
Get frontend dependencies and start frontend application in development mode
$ npm install $ npm start
-
In another tab or window start sbt console and run backend application in development mode
$ sbt -Dconfig.file=conf/dev.conf -jvm-debug 9999 -mem 2048 [exam] $ run
This opens up a debug port at 9999 and allocates 2 Gb of heap memory for the JVM.
-
Open http://localhost:4200 in your browser. Accept the database migrations in case you see a prompt.
For more information see official installation instructions (in Finnish only)