-
clone this project
git clone git@github.com:CST-ClientServer/assignment2.git -
Use IntelliJ IDEA Ultimate
-
Press
Ctrl+Alt+Shift+S(Project Structure Menu) and go to libraries -
Click on the
+button thenFrom Maven...and search forjackson-databindand click on the magnifying glass -
Click on the dropdown menu when the search is done and select
com.fasterxml.jackson.core:jackson-databind:2.15.2 -
Check your newly downloaded file. It should bring up 3 classes:
jackson-annotations,jackson-core, andjackson-databind. If you don't have all these files, then download them from https://mvnrepository.com/ -
Go to the Artifacts menu and select
assignment:war_exploded -
Create a folder named "lib" under the WEB-INF folder and drag
jackson-databind(alsojackson-annotationsandjackson-coreif available) from the assignment folder on the right into the newly created lib folder. Accept all changes. -
Press
Alt + U(Run/Debug menu) and select Edit Configurations -
Select Tomcat Server -> Local
-
Make sure the URL is http://localhost:8082/assignment_war/ and the HTTP port is
8082 -
Go to the Deployment tab and click on
+thenArtifact...then select bothassignment:warandassignment:war exploded. Accept all changes. -
Enter to the assignment2-client folder
-
Run npm install
npm iwhile in the assignment2-client terminal to install dependencies. -
Run the Tomcat Server that you recently set up for this project.
-
Run the React app by typing
npm startwhile in the assignment2-client terminal -
For the ConsoleApp interaction, make assignment2-app/app/main/java a
srcfolder and run Activity.java by pressing the play button beside the main function. You may switch ports in the UploadClient.java file by altering the static port number(8081 or 8082). -
Make sure you run your own Tomcat server at port 8081 because this project sets up Tomcat at port 8082.
-
Notifications
You must be signed in to change notification settings - Fork 0
CST-ClientServer/assignment2
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Repository for assignment 2 for Comp3940
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published