This is the repository for the HYPED Mission Control, which is responsible for communicating with the hyperloop pod, sending relevant commands to it and displaying received information in the GUI. Backend is written in Java with the Spring Boot framework, it communicates to the pod using JSON messages sent over a TCP socket, and displays information on the React frontend.
First of all, make sure that your Java version is 8 or up.
Then download the latest release from Github, put it inside your hyped-2021
repo if you want the debug functionality, and run:
$ java -jar mission-control-2021.jar
Go to localhost:8080
for the GUI.
This project uses gradle as its build system. Only manually build the project instead of using the released jar file as explained above if you actually intend to work on the mission control. The gradle wrapper is already checked into this repo, so no need to explicitly download gradle (unless you want to).
-
Download and install nodeJS from nodejs.org
You can check whether it was successfully installed by typingnode -v && npm -v
in the terminal. -
Install yarn:
sudo npm install yarn -g
-
Clone this repo
-
Run to build:
./gradlew build
. This will create a jar file inbuild/libs/
that contains both the backend and the static frontend that it serves. -
Launch Mission Control:
java -jar build/libs/mission-control-2021.jar
-
Go to
localhost:8080
for the GUI.