Running Faroxy
Quick Setup
Faroxy provides a setup script that handles all the necessary configuration:
- Clone the repository:
git clone https://github.com/vinipx/faroxy.git cd faroxy
- Run the setup script:
./scripts/setup.sh
The setup script will:
- Make the control script executable
- Add the
faroxy
command to your shell (zsh and bash supported) - Configure necessary permissions
- Provide clear instructions for next steps
- Activate the alias (as instructed by the setup script):
source ~/.zshrc # if using zsh source ~/.bashrc # if using bash
- Start using Faroxy:
faroxy start # Start the server faroxy status # Check server status faroxy help # Show all commands
Manual Running
If you prefer not to use the control script, you can run Faroxy manually:
Using Gradle
# Run the application
./gradlew bootRun
# Build the application
./gradlew build
# Run tests
./gradlew test
Using Java
After building, you can run the JAR file directly:
java -jar build/libs/faroxy-<version>.jar
Docker Support
Faroxy also supports running in a Docker container. See our Docker Guide for details.
Troubleshooting
Common Issues
- Port Already in Use
# Check what's using port 8080 lsof -i :8080 # Kill the process kill <PID>
- Permission Issues
# Make sure the script is executable chmod +x scripts/faroxy.sh
- Java Version
# Verify Java version java -version
Getting Help
If you encounter any issues:
- Check the application logs in
logs/faroxy.log
- Use
faroxy status
to check the application state - Visit our GitHub Issues page
- Refer to the Troubleshooting Guide