A JBang wrapper for the MAPS Messaging server that makes it easy to install and run the server with a single command.
- Java 21 or higher
- JBang (will be installed automatically if not present)
If you don't have JBang installed or want a fresh installation:
curl -Ls https://github.com/Maps-Messaging/mapsmessaging-jbang/raw/main/install.sh | bashAfter installation, source your shell configuration:
# For Linux
source ~/.bashrc
# For macOS
source ~/.zshrcIf you already have JBang installed:
- Trust the Maps-Messaging organization:
jbang trust add https://github.com/Maps-Messaging/- Install MAPS Messaging:
jbang app install --fresh --force https://github.com/Maps-Messaging/mapsmessaging-jbang/blob/main/MAPS_Messaging.javaStart the server:
mapsmessagingFor debug output:
mapsmessaging --debugThe repository contains:
MAPS_Messaging.java: The main JBang script that wraps the MAPS Messaging serverinstall.sh: Installation script for setting up the environmentREADME.md: This documentation file
Other files in the repository are for development and testing purposes only.
- Automatic Java 21 installation if not present
- Automatic JBang installation if not present
- Simple one-command installation
- Easy server startup
- Debug mode support
- Version checking
- Server status monitoring
If you encounter any issues:
-
Command not found: Make sure JBang is in your PATH
# Add JBang to PATH (if needed) export PATH="$HOME/.jbang/bin:$PATH"
-
Java version issues: Ensure Java 21 is installed
# Check Java version java -version -
Permission denied: Make the script executable
chmod +x install.sh
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.