- Flask web application for querying Oliver metafile server - Replicates Make.com workflow for job data retrieval - Two-stage process: XML client extraction → JSON data retrieval - Clean HTML interface with responsive design - Comprehensive error handling and SSL fixes - Complete documentation and installation guides 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
6.3 KiB
Installation Guide - Meta File Server Query Application
This guide will help you install and run the Meta File Server Query application on different systems.
Prerequisites
Required Software
- Python 3.7 or higher - Download Python
- Git (optional) - For cloning the repository
- Modern web browser - Chrome, Firefox, Safari, or Edge
System Requirements
- RAM: 512MB minimum, 1GB recommended
- Storage: 100MB free space
- Network: Internet access to reach metafile.oliver.solutions
Installation Methods
Method 1: Quick Install (Recommended)
- Download/Copy the application folder to your desired location
- Open Terminal/Command Prompt and navigate to the folder:
cd /path/to/META-FILE-SERVER-QUERY - Run the startup script:
This will automatically:./start.sh- Create the virtual environment
- Install all dependencies
- Start the application
Method 2: Manual Installation
-
Navigate to the application directory:
cd /path/to/META-FILE-SERVER-QUERY -
Create Python virtual environment:
python3 -m venv meta-server-venv -
Activate the virtual environment:
On macOS/Linux:
source meta-server-venv/bin/activateOn Windows:
meta-server-venv\Scripts\activate -
Install dependencies:
pip install -r requirements.txt -
Run the application:
python run.py
Platform-Specific Instructions
macOS
-
Install Python 3 (if not already installed):
# Using Homebrew (recommended) brew install python3 # Or download from python.org -
Make startup script executable:
chmod +x start.sh -
Run the application:
./start.sh
Windows
-
Install Python 3 from python.org
- ✅ Check "Add Python to PATH" during installation
-
Open Command Prompt or PowerShell:
cd C:\path\to\META-FILE-SERVER-QUERY -
Create virtual environment:
python -m venv meta-server-venv -
Activate virtual environment:
meta-server-venv\Scripts\activate -
Install dependencies:
pip install -r requirements.txt -
Run application:
python run.py
Linux (Ubuntu/Debian)
-
Install Python 3 and pip:
sudo apt update sudo apt install python3 python3-pip python3-venv -
Navigate and setup:
cd /path/to/META-FILE-SERVER-QUERY chmod +x start.sh ./start.sh
Linux (CentOS/RHEL/Fedora)
-
Install Python 3:
# CentOS/RHEL sudo yum install python3 python3-pip # Fedora sudo dnf install python3 python3-pip -
Run setup:
cd /path/to/META-FILE-SERVER-QUERY chmod +x start.sh ./start.sh
Docker Installation (Optional)
If you prefer using Docker:
-
Create Dockerfile:
FROM python:3.9-slim WORKDIR /app COPY . /app RUN pip install -r requirements.txt EXPOSE 5000 CMD ["python", "run.py"] -
Build and run:
docker build -t meta-file-server . docker run -p 5000:5000 meta-file-server
Verification
After installation, verify the application is working:
-
Check the startup output - you should see:
Meta File Server Query Application ==================================== Starting server on http://localhost:5000 Press Ctrl+C to stop the server -
Open your web browser and go to:
http://localhost:5000 -
Test with a job number (e.g.,
6046034) -
Check the API directly:
http://localhost:5000/api/health
Troubleshooting Installation
Python Not Found
Error: python3: command not found
Solution:
- Install Python 3 from python.org
- On Windows, try
pythoninstead ofpython3 - Make sure Python is added to your system PATH
Permission Denied
Error: Permission denied: ./start.sh
Solution:
chmod +x start.sh
Module Not Found
Error: ModuleNotFoundError: No module named 'flask'
Solution:
- Make sure you activated the virtual environment
- Run:
pip install -r requirements.txt
Port Already in Use
Error: OSError: [Errno 48] Address already in use
Solution:
- Stop any other applications using port 5000
- Or modify
run.pyto use a different port:app.run(debug=True, host='0.0.0.0', port=5001) # Change port
SSL Certificate Warnings
Warning: InsecureRequestWarning: Unverified HTTPS request
This is expected - The application disables SSL verification for the metafile server due to certificate issues. This is safe for this specific use case.
Uninstallation
To remove the application:
- Stop the application (Ctrl+C)
- Delete the entire folder:
rm -rf /path/to/META-FILE-SERVER-QUERY
The application is self-contained in its directory and doesn't install anything system-wide.
Moving to Another Machine
To transfer the application to another computer:
- Copy the entire META-FILE-SERVER-QUERY folder
- Install Python 3 on the target machine
- Run the installation using Method 1 or 2 above
The meta-server-venv folder can be deleted before copying - it will be recreated during installation.
Production Deployment
For production use on a server:
- Install using Method 2 (manual installation)
- Install a production WSGI server:
pip install gunicorn - Run with Gunicorn:
gunicorn -w 4 -b 0.0.0.0:5000 app:app - Set up reverse proxy (nginx/Apache) and SSL certificate
- Configure firewall to allow traffic on your chosen port
Support
If you encounter issues during installation:
- Check the Troubleshooting section above
- Verify your Python version:
python3 --version - Check that all required files are present in the application directory
- Ensure you have internet connectivity to download dependencies
Need help? The application includes comprehensive error messages and logging to help diagnose issues.