This is the template provided to start the web server for Tutorial 2. You should download this to follow along when watching the tutorial.
The finished example can be found on the finished branch of this repository.
We encourage you to use either IntelliJ IDE or maven from command line in order to get the best support from our TAs.
-
The server/REST API
- Located in /server
- Is used to hold the REST API built in the previous tutorial
-
The example client
- Located in /clients/example
- Is used to hold the related classes for building the client side for our tutorial
-
The GitHub client
- Located in /clients/github
- Is used to hold the related classes for building the client that will interact with GitHub which is also used for our tutorial
- For each included project, navigate to the directory and find the pom.xml file, right
click and click on "Add as Maven Project" to load up the project and start working on it.
- Browse to desired class to run the main method
- Right click associated class and choose Run main()
Run the following commands in the associated project directory:
Compile:
mvn install
Run (Server)
mvn exec:java -Pserver
Run (Customer Client)
mvn -e exec:java -Pcustomer
Run (GitHub Client)
mvn -e exec:java -Pgithub
Clean:
mvn clean