The CMT complete documentation is available here.
To follow the steps in this tutorial, you will need the correct version of Java and sbt. The tutorial requires:
- Java Software Developer's Kit (SE) 11 or higher
- sbt 1.8.2 or higher. Note: if you downloaded this project as a zip file from https://developer.lightbend.com, the file includes an sbt distribution for your convenience.
To check your Java version, enter the following in a command window:
java -version
To check your sbt version, enter the following in a command window:
sbt sbtVersion
If you do not have the required versions, follow these links to obtain them:
- Download the latest CMT release
- Unzip the zip file downloaded
- Update your PATH to include the
course-management-tools/bin
folder in the folder in which you unzipped the downloaded zip file
The installation documentation about the CMT is available here.
To check if the installation is a success try to run:
~ cmta
~ cmtc
If the possible parameters are returned the installation is successful.
- Clone the repository to a directory of your choice
- At the root of the repository run the studentify:
cmta studentify -f -m . -s [dir_path]
- Set up the studentified course as the current course:
cmtc set-current-course -s [dir_path]
Once this is done you can run cmtc
to display the possible commands
To build and run the project:
- Use a command window to change into the code folder of the project directory, for example:
cd play-course/code
- Build the project. Enter:
sbt run
. The project builds and starts the embedded HTTP server. Since this downloads libraries and dependencies, the amount of time required depends partly on your connection's speed. - After the message
Server started, ...
displays, enter the following URL in a browser: http://localhost:9000