Thorium Server

Running projects

You can use the sbt or IntelliJ IDEA to run the project.

In the Scala Main file, the server implementation is located within the main method, as shown below (refer to the Tutorial section for additional details):

@main def start: Unit = Server()
         .addHttpService("/", homePage)
         .start()
Afterwards, in the terminal, start your sbt shell by typing:
sbt
Once the sbt shell has started, type run to run the main method defined in the Main file

run 

Alternatively, use "Run" function in IntelliJ IDEA to start the server.

Last modified on 10/11/2023, 4:52 pm