Skip to content

mrpthemrp/package-delivery-tracker-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package Delivery Tracker Web Server 🖥️

This repository contains a 🍃🥾 Spring Boot web server.
It needs to be run with its counterpart, a ☕ Java Swing program.

⚠️ Please DO NOT FORK this repository/project! ⚠️
🟥 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).

♨️ JavaDocs Link

Watch a quick demo of the project through the link below!
📼 Video Demo Link

📑 Table of Contents

  1. Project Description
  2. Installation Guide
    1. Software Requirements
    2. Steps
  3. References
  4. Citation Format

1. Project Description

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.

2. Installation Guide

This project was created through IntelliJ.

💻 Software Requirements

  • 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.

📝 Steps

The following steps are intended for use with the IntelliJ IDE

Part I - Download Code and Open on IntelliJ


  1. Download this project as a ZIP file.
    • Click 'Code' and then 'Download ZIP'.
  2. Unzip the main folder - 'package-delivery-tracker-server-master'.
  3. Open IntelliJ and select 'Open' or 'Open Project'.
  4. 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.

Part II - Configure Libraries and Run Program


  1. Configure the SDK by File > Project Structure > Project Settings > Project
    • We will set the JDK, Language Level, and Compiler output here.
  2. Select JDK 18
    • It is HIGHLY important that JDK 18 and up is used!
  3. Select 'Language Level' to be 18
    • Or whichever JDK number you are using.
  4. 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
  5. Go to Libraries which is also under Project Settings
  6. Click on the "+" button to add a library
  7. Click "Maven" from the library options
  8. Type 'com.google.gson' and click on the search button
  9. Select the newest gson library and click ok
    • Version 2.9.1 was used to write this project
  10. 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.
  11. Click 'Apply' and then 'OK'
  12. Click Run and the server will run properly. Make sure to run the client side of the program too!

3. References

All references are cited within the program's API.

However, there are a few external libraries used that should be noted:

4. Citation Format

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

About

Package Delivery Tracker Web Server | CMPT 213 (Dr. Victor Cheung) | Summer 2022

Resources

Stars

Watchers

Forks

Contributors

Languages