Skip to content

Conversation

@md0x
Copy link
Contributor

@md0x md0x commented Jan 26, 2026

Motivation

Running the Polymarket notifier locally requires following multiple manual steps from the README: cloning repos, setting paths, generating env files, building, and running. This is error-prone and time-consuming.

Summary

Added an interactive bash script (run-local.sh) that guides users through the entire setup process for running the Polymarket notifier locally in one-shot mode.

Details

The script handles:

  • Auto-detecting the UMA Protocol path from script location
  • Prompting for the bot-configs repository path
  • Optional dependency installation for bot-configs
  • Generating .env.local with proper local settings (strips Slack/PagerDuty/Discord/Redis configs, adds LOCAL_NO_DATASTORE=true)
  • Setting POLLING_DELAY=0 for one-shot mode
  • Building the monitor-v2 package (with skip option if already built)
  • Running the notifier with proper environment configuration

Testing

  • Ran end-to-end test, running the code as in production
  • New unit tests created
  • Existing tests adequate, no new tests required
  • All existing tests pass
  • Untested

Issue(s)

N/A - Quality of life improvement for local development

@linear
Copy link

linear bot commented Jan 26, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants