### Start in Production Mode Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Starts the application after it has been built for production. ```bash pnpm run start ``` -------------------------------- ### Create and Start Docker Container Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Creates and starts a Docker container, mounting a local data directory. Use --detach to run in the background. ```bash docker run --volume "${PWD}/data:/data" --name lootscraper eikowowagenknecht/lootscraper:develop ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Installs all necessary project dependencies using pnpm. Also installs the Firefox browser for Playwright, which is required for browser automation. ```bash pnpm install playwright install firefox # Required for browser automation ``` -------------------------------- ### Install Dependencies (pnpm) Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Installs project dependencies using pnpm. Ensure Node.js 22+ is installed. ```bash pnpm install ``` -------------------------------- ### Run Development Server Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Starts the application in development mode, enabling debug logging for easier troubleshooting. ```bash pnpm run dev # Run in development mode with debug logging ``` -------------------------------- ### Run in Development Mode Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Starts the application in development mode, useful for active development and debugging. ```bash pnpm run dev ``` -------------------------------- ### Install Playwright Browsers Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Installs the Firefox browser for Playwright, which is used by the scraper. ```bash playwright install firefox ``` -------------------------------- ### Explore Docker Container with Bash Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Starts a Docker container with an interactive bash shell, allowing exploration without running the main application. Mounts the data volume. ```bash docker run -it --entrypoint /bin/bash --volume "${PWD}/data:/data" --name lootscraper_debug eikowagenknecht/lootscraper:develop ``` -------------------------------- ### Clean npm Cache and Dependencies Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Cleans the npm cache and removes installed dependencies to allow for a fresh installation. ```bash pnpm run clean:npm ``` -------------------------------- ### Run Production Build Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Executes the production-ready build of the application. ```bash pnpm run start # Run production build ``` -------------------------------- ### Build for Production Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Compiles the application for production deployment. ```bash pnpm run build # Build for production ``` -------------------------------- ### Run Unit Tests Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Executes all unit tests for the project. ```bash pnpm test # Run unit tests ``` -------------------------------- ### Show Docker Container Logs Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Displays the logs of a running Docker container in real-time. ```bash docker logs -f lootscraper ``` -------------------------------- ### Run All Tests Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Executes both unit tests and contract tests. ```bash pnpm test:all # Run both unit and contract tests ``` -------------------------------- ### Build Docker Image Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Builds a Docker image for the LootScraper application, tagging it with 'develop'. ```bash docker build . -t eikowagenknecht/lootscraper:develop ``` -------------------------------- ### Sync Dependencies (pnpm) Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Synchronizes project dependencies with the lock file, ensuring consistency. ```bash pnpm run sync:npm ``` -------------------------------- ### Format Code Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Formats the project's code using the oxfmt tool. ```bash pnpm run format # Format code with oxfmt ``` -------------------------------- ### Show Outdated Packages Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Lists packages that have newer versions available. ```bash pnpm outdated ``` -------------------------------- ### Run Tests with Coverage Report Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Executes all tests and generates a code coverage report to assess test completeness. ```bash pnpm test:coverage # Run tests with coverage report ``` -------------------------------- ### Perform Full Linting Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Runs a comprehensive linting process that includes TypeScript type checking, oxlint analysis, and code formatting with oxfmt. ```bash pnpm run lint # Full lint (TypeScript check + oxlint + oxfmt) ``` -------------------------------- ### Push Docker Image to Hub Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Pushes the locally built Docker image to Docker Hub. ```bash docker push eikowagenknecht/lootscraper:develop ``` -------------------------------- ### Discord Bot Configuration for RSS Feeds Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README.md Configure the MonitoRSS bot to post offers to Discord. Use the provided variables for content and button/embed customization. ```markdown **{{title}}** {{description}} ``` ```markdown Label: `Claim`, URL: `{{link}}` ``` ```markdown Image URL` with the `{{extracted::atom:content__#::image1}}` variable ``` -------------------------------- ### Update All Packages (pnpm) Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Updates all project dependencies to their latest versions. ```bash pnpm run upgrade:npm ``` -------------------------------- ### Discord Bot Configuration Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Configure the Discord bot settings in your YAML configuration file. Ensure the bot token and server ID are correctly set. ```yaml actions: discordBot: true discord: botToken: "your-bot-token-here" guildId: "your-server-id" adminRoleId: "" # Optional: role that can use admin commands channelPrefix: "" # Optional: prefix for channel names (e.g., "loot-") categoryName: "Free Games" # Category to organize channels under ``` -------------------------------- ### Run Docker Container Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Runs the LootScraper Docker container, mounting the local 'data' directory to '/data' inside the container and naming the container 'lootscraper'. ```bash docker run --volume "${PWD}/data:/data" --name lootscraper eikowagenknecht/lootscraper:develop ``` -------------------------------- ### Run Contract Tests Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Executes contract tests, which are integration tests designed to verify interactions with external APIs. ```bash pnpm test:contract # Run contract tests (integration tests with external APIs) ``` -------------------------------- ### Save Docker Image Locally Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Saves a Docker image to a local tar archive. ```bash docker image save -o ./data/lootscraper.tar eikowagenknecht/lootscraper:develop ``` -------------------------------- ### Run Tests in Watch Mode Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Runs unit tests and automatically re-runs them when file changes are detected. ```bash pnpm test:watch # Run tests in watch mode ``` -------------------------------- ### Combined Lint and Type Check Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Executes both linting and TypeScript type checking in a single command. ```bash pnpm run check # Combined lint + type-check ``` -------------------------------- ### Stop Docker Container Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Stops a running Docker container. ```bash docker stop lootscraper ``` -------------------------------- ### Remove Docker Container Source: https://github.com/eikowagenknecht/lootscraper/blob/main/README_DEV.md Removes a stopped Docker container. ```bash docker container rm lootscraper ``` -------------------------------- ### TypeScript Type Checking Only Source: https://github.com/eikowagenknecht/lootscraper/blob/main/CLAUDE.md Performs only the TypeScript type checking without running linters or formatters. ```bash pnpm run type-check # TypeScript type checking only ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.