Index of /courses/cse331/23su/sections/sec09-demo

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[   ]build.gradle2022-05-29 19:42 1.1K 
[   ]gradle.properties2022-05-29 19:42 24  
[DIR]gradle/2023-06-16 11:52 -  
[TXT]gradlew2022-05-29 19:42 5.3K 
[TXT]gradlew.bat2022-05-29 19:42 2.2K 
[   ]settings.gradle2022-05-29 19:42 35  
[DIR]src/2023-06-16 11:52 -  

Section Demo Code - Index

Table of Contents

The starter code is available in 2 formats in this directory. sec09 -demo is the complete source tree as a collection of files. sec09-demo.zip contains exactly the same files as sec09-demo but packaged as a single archive for convenient downloading. Import these files into IntelliJ to run the demos and experiment with the code.

Spark Java

See src/main/java/sparkDemo for the code and comments. Demonstrates the following:

To start the SparkServer and test it out for yourself, run the runSpark gradle task. (It's under the "demo" drop-down in the gradle window in IntelliJ.)

fetch

See src/main/react/src/App.tsx for the code and comments. Demonstrates the following:

To run the React application and test it our yourself, run npm install (first time only), then npm start from the src/main/react directory. Remember, the fetch demo makes requests to the Spark Java server, so you probably want that demo running as well. (See above.)

Anonymous Inner Classes

See src/main/java/anonInnerClassDemo for code. Demonstrates the following:

See the slides for more info. This demo project contains working versions of all the code from the slides. Use the runStringSortClasses, runStringSortInnerClasses and runStringSortAnonymousInnerClasses gradle tasks to run these different versions. (They're under the "demo" drop-down in the gradle window in IntelliJ.)

Gson

See src/main/java/gsonDemo for code and comments. Demonstrates the following:

Uses the example from slides. Use the runGson gradle task to run this demo. (It's under the "demo" drop-down in the gradle window in IntelliJ.)