This repository contains a 🍃🥾 Spring Boot web server.
It needs to be run with its counterpart, a ☕ Java Swing program.
🟥 Please DO NOT COPY ANY CODE from this project! 🟥
This project is not intended to be open-source, feel free to use it as a reference but DO NOT FORK OR COPY!
If used as reference, please cite by providing link to project and author name (see section below).
Watch a quick demo of the project through the link below!
📼 Video Demo Link
This project is the final assignment for CMPT 213 (Dr. Victor Cheung) at SFU.
This repository contains a Spring Boot application that acts as a web server to hold and manipulate data (in JSON form) from the client app. Data is stored in a .json file in the gson folder, and is created on first run.
For a full project description, see the web app repository.
See video demo for more comprehensive walkthrough.
This project was created through IntelliJ.
- Windows OS or MacOS
- This project HAS BEEN tested on MacOS and does work.
- Windows 7 and up is recommended
- MacOS 10.12 and up is recommended.
- Latest version of IntelliJ
- Either Ultimate or Community version works.
The following steps are intended for use with the IntelliJ IDE
- Download this project as a ZIP file.
- Click 'Code' and then 'Download ZIP'.
- Unzip the main folder - 'package-delivery-tracker-server-master'.
- Open IntelliJ and select 'Open' or 'Open Project'.
- Locate where the unzipped folder from step 2 is on your machine. Click on the folder to open the project.
- Click 'Trust Project' when the pop-up appears.
- The project will now open.
- Configure the SDK by File > Project Structure > Project Settings > Project
- We will set the JDK, Language Level, and Compiler output here.
- Select JDK 18
- It is HIGHLY important that JDK 18 and up is used!
- Select 'Language Level' to be 18
- Or whichever JDK number you are using.
- Make sure 'Compiler output:' is set to the out folder
- It should already be set but if not make sure the path is ../package-delivery-tracker-server-master/out
- Go to Libraries which is also under Project Settings
- Click on the "+" button to add a library
- Click "Maven" from the library options
- Type 'com.google.gson' and click on the search button
- Select the newest gson library and click ok
- Version 2.9.1 was used to write this project
- Click 'OK' when pop-up comes up on adding 'webserverapp' to module
- If asked to replace old libary, click CANCEL and the old libary will be added to path.
- Click 'Apply' and then 'OK'
- Click Run and the server will run properly. Make sure to run the client side of the program too!
All references are cited within the program's API.
However, there are a few external libraries used that should be noted:
Example of citing this project as a reference:
Reference used for writing a SpringBoot GetMapping: https://github.com/mrpthemrp//package-delivery-tracker-server/blob/master/src/main/java/cmpt213/assignment4/packagedeliveries/webappserver/controllers/Controller.java
Date Accessed: August 2022
Developer: Deborah Wang
If using this project as a reference please copy and paste the following into your references/citations:
Reference for <code referenced>: <file/folder URL>
Date Accessed: <date accessed>
Developer: Deborah Wang (https://github.com/mrpthemrp)Last Code Update Date: August 2022
Copyright August 2022, Deborah Wang