-
Notifications
You must be signed in to change notification settings - Fork 2
Arrowhead Framework 4.1.2 Quick Setup
- Install Java 11+
- Download the Arrowhead Runtime Quick folder (by cloning the repository,
git clone https://github.com/IncQueryLabs/arrowhead-tools
) - Install MySQL Server
- MySQL Workbench will probably be useful too
- Make sure the server listens on port 3306
- Have a user named root
- Run the create database sql script on the database, included in the folder
To start the Arrowhead Framework components run their JARs, found in the Arrowhead Runtime Quick folder's subfolders.
The working directory should be the JAR's parent directory.
The order matters. The Service Registry should be first.
- The Service Registry:
java -jar ServiceRegistry.jar
- The Authorization:
java -jar Authorization.jar
- The Event Handler:
java -jar EventHandler.jar
- The Gatekeeper:
java -jar Gatekeeper.jar
- The Gateway:
java -jar Gateway.jar
- The Orchestrator:
java -jar Orchestrator.jar
For testing purposes you might add the -d flag, so that the servers start in debug mode, which means they print each received http message in a json format.
It's important to stop the servers before exiting the shell, otherwise they won't start up again, because they try to reserve the same resources.
This setup is for testing purposes only. It's unsafe and insecure. (I commented out the line in OrchestratorService that checked authorization.)
To be expanded as new data comes in
When changing DB username-password, config has to be changed twice, once at the top, once in the log4j settings.