Code lives in this repo at code/inventory/. Clone the portfolio repository to get the source.
How to run
Clone this repository, then open a terminal in the-monospace-web/code/inventory.
Install Go if needed. Ensure PostgreSQL is running and configured (connection string or env).
Configure Microsoft Graph API credentials (OAuth2 client credentials) for Outlook email matching.
Run go build then execute the binary. The app starts the scraper coordinator and email matcher in the background; it will run an initial scrape and then periodic scrapes (about every 45–75 minutes) and poll Outlook for new emails to match.
For production, use the deployment/ systemd service config.
code/inventory/
Overview
Production-ready Go application that scrapes truck listings from 8 major marketplaces and automatically matches them to client email requests via Outlook integration using Microsoft Graph API.
Architecture
Data Flow
Marketplace websites are scraped via Rod browser automation into the scraper coordinator, which saves listings to PostgreSQL. The email matcher queries the database for matches and fetches emails from Microsoft Graph API (Outlook); it runs in the background alongside the scraper.
Key Components
Scraper Coordinator - Orchestrates scraping from 8 marketplaces using Rod (Go-native browser automation)