Conversation
This commit refactors the application to transition from Cloudflare Workers to a Node.js environment, utilizing BullMQ for queue management. Key changes include: - Removed Cloudflare-specific workflows and bindings. - Added BullMQ queues for transaction and webhook processing. - Updated environment configuration and Redis integration. - Modified transaction handling to use BullMQ jobs instead of Cloudflare workflows. - Enhanced error handling and logging with Pino. - Updated dependencies to support the new architecture. The refactor aims to improve maintainability, scalability, and deployment flexibility by leveraging Node.js and BullMQ for background job processing.
The changes improve code readability by fixing indentation and adding explicit type casting for the `global.fetch` mock. This ensures consistency and clarity in the test file.
This commit introduces Docker and docker-compose configuration files to streamline the deployment process. The .dockerignore file is added to exclude unnecessary files, and the Dockerfile is created to build the application using Bun. The docker-compose.yml file sets up the application and Redis services for local development. Additionally, the package.json is updated to include a "start" script for running the application in production.
Standardize indentation across multiple files to improve code readability and maintain consistency. Simplify Redis configuration by using a single `REDIS_URL` environment variable instead of separate `REDIS_HOST`, `REDIS_PORT`, and `REDIS_PASSWORD` variables. This change reduces complexity and aligns with modern Redis connection practices.
Add husky as a dependency and configure a pre-commit hook to run biome checks and tests. This ensures code quality and test pass before commits.
This commit introduces a new GitHub Actions workflow to automate continuous integration and quality checks. The workflow includes two jobs: one for running tests using Bun and another for running code quality checks using Biome. This ensures that code is tested and adheres to quality standards before merging.
This commit introduces the fly.toml configuration file to set up the deployment environment for the khqr-webhook application on Fly.io. The configuration includes settings for the app name, primary region, build, environment variables, HTTP service, and VM specifications.
The test command was removed from the pre-commit hook to streamline the pre-commit process. This change ensures that only the biome check is executed during pre-commit, reducing the time required for the pre-commit step.
The test command in the CI workflow was updated from `bun test` to `bun run test` to align with the project's script configuration. This ensures consistency and avoids potential issues with script execution.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.