This is a template project for assignments in the DePauw CSC424, Programming Languages course. It is based on a template project designed for people using the Doodle library from Creative Scala.
-
Fork or clone this template. What's the difference?
- If you fork this repository you get your own copy on Github. You can then clone that repository to get a copy on your computer and save work back to your fork on Github and share it with other programmers.
- If you clone this repository without forking you get a copy on your computer but no copy on Github that you can save work back to and share.
-
Open your Terminal or Command Prompt in this directory.
- In VS Code, go to Terminal -> New Terminal. There should be a terminal window that pops up under the code editor.
- Or, in Mac,
- Press Cmd + Space to open the Spotlight Search.
- Type "Terminal" to find the Terminal.
- Click that to open it.
- Go to this directory:
cd <path to>/csc424-template. Replace<path to>with your directory path.
- In Windows,
- Go to the Start Menu.
- Search for Command Prompt.
- Click that to open it.
- Go to this directory:
cd <path to>/csc424-templateReplace<path to>with your directory path.
-
If you do not already have Java and Node installed, see https://adoptium.net/temurin/releases/ and https://nodejs.org/en/download/package-manager/current.
-
Run
sbt(if you already have SBT installed),./sbt.sh(OS X and Linux) orsbt.bat(Windows) to start SBT. -
Type
runin SBT to run the @main method, orconsoleif you want to explore in an interactive console, ortestto run Scala unit tests. -
To run JavaScript unit tests, type
npm testat the terminal prompt (not the SBT prompt; useexitto get out of SBT if it is running). -
To run a JavaScript file with a main method, run
node <filename>. For example,node src/main/js/assignment1/Group.js. -
You can also run this repository in a GitHub Codespace.