mkurz / play-courses

Courses on play using the course management tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

play-courses

The CMT complete documentation is available here.

Requirement

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:

CMT installation

  • 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.

CMT course setup

  • 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

Build and run the project

To build and run the project:

  1. Use a command window to change into the code folder of the project directory, for example: cd play-course/code
  2. 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.
  3. After the message Server started, ... displays, enter the following URL in a browser: http://localhost:9000

About

Courses on play using the course management tools

License:Creative Commons Zero v1.0 Universal


Languages

Language:CSS 86.0%Language:HTML 7.2%Language:Scala 5.9%Language:Shell 0.8%