Bun is required to run this project. You can install it from here.
Alchemy RPC Token is required to run this project, you can aquire it here. (after login search for "Account Kit Quickstart" and go to "Networks" tab to enable Polygon network and grab the token)
bun installprepare the environment variables copy .env.example to .env and fill in the values.
use Phantom/MetaMask to export the private key and set PK, connect your wallet with polymarket to get their internal wallet, use polymarket address to set POLYMARKET_FUNDER_ADDRESS
when both are set generate api keys with generate-key.ts script
bun run src/utils/generate-key.tsTo setup / reset the database
bun drizzleto seed the database
bun markets