Skip to content

[WIP] Enhance Crypto Price Tracking Application: Improved Structure and Validation - #174

Draft
ItsHugoo wants to merge 8 commits into
HermanKoii:mainfrom
ItsHugoo:e76a0895-0a2b-426e-b43b-059fa02aee8f-merged
Draft

[WIP] Enhance Crypto Price Tracking Application: Improved Structure and Validation#174
ItsHugoo wants to merge 8 commits into
HermanKoii:mainfrom
ItsHugoo:e76a0895-0a2b-426e-b43b-059fa02aee8f-merged

Conversation

@ItsHugoo

@ItsHugoo ItsHugoo commented Jun 7, 2025

Copy link
Copy Markdown

Enhance Crypto Price Tracking Application: Improved Structure and Validation

Description

Summary of Work

This pull request consolidates multiple improvements to our cryptocurrency price tracking application:

Key Objectives:

  • Strengthen input validation for cryptocurrency-related routes
  • Improve project structure and maintainability
  • Ensure robust error handling and testing coverage

The changes focus on:

  1. Refining input validation middleware
  2. Organizing route handlers for coin details
  3. Enhancing test coverage for critical components

Benefits:

  • More reliable API endpoint handling
  • Improved security through rigorous input validation
  • Better organized codebase with clear separation of concerns

Changes Made

  1. Updated input validation middleware

    • Enhanced error checking in tests/middleware/inputValidation.test.js
    • Added more comprehensive validation scenarios
  2. Refined route handling

    • Improved error handling in src/routes/coinDetails.js
    • Cleaned up routing logic and added type safety checks
  3. Mock data management

    • Updated src/data/crypto-prices.json with more comprehensive test data
    • Ensured mock data aligns with application requirements

Tests and Verification

  1. Expanded test coverage

    • Verified input validation middleware handles edge cases
    • Added new test scenarios in mock-crypto-prices.test.js
    • Ensured all route handlers pass comprehensive test suites
  2. Validation testing

    • Checked input validation for various cryptocurrency data types
    • Verified error handling for invalid inputs
    • Confirmed mock data integrity and consistency

PRs Merged

The following pull requests have been merged:

Signatures

Staking Key

HtDSDViFnKSD9X2TD1kTZAtkF7xHJrjBLntr8z4BZpfb: aybwfvtEbpAmMwBm885xq1gK8ZfxsrFvcFtXVJh45v4LTyFcKj66JfWstcN7qd4xA7suMToUPeFrN2MSSjFKQWDTinJTK4LyuYpVt4JteyCaff7QzZ7KQNHVBx3NWhHhw1JFXTs5zFGUFABkCxZDYwUf35YoG64kbUosKJ8L4HqBnDwXxEEAYM2nbB86HKAZJ1vqLNUjPvMHjcZ22WipRYdHmKyhwu6jynGcbSWgbBKdDWHT9GMXYP96YtB4DuzaVvn9bnBUNVtBNxQ5ApfQqryFAC28Dzoho133yKn6XXVziBQ8iFGXUJfDpdJkv2YnTddn2jGN9FYPnKuW36vcoLG3toS4tkYPftGotbRe3U8ikW7h7nywSLGvQKQZvuDAfgJ7jFnKvNiGr7kaEXnRzWGyApaA3TivXv

Public Key

4g6jT7dSFNEy2NafTaQb6oe2M73jZjfznuz9WTfvKvyg: UwS7UwDuQ9GE4PwqvMF7oDQ9ro9fRKgSYvAcfbP5Xsz7wbUx6EoKytPoei75arqGaX7DYREitVQ27qoQrX9S8RE5sxUvf3apYJDPejwfhoqv7sADen6dRHKvjVMGkoMkztbxYhN3f59Phe5euHKi5VcehBamPEKQmLh5C9dUervkiFQ61uqqAXjp29xqTmfecH3FyGZ5qwdSp3ZykVrrvPUokGRwcwLEvqsCvoHELex1QwkLjjwMnwQZfNwLWoJmPrvU5MoLD3uJ6D5LZiEQArKFc2eKTq9UKuMNm57i4t4gGTevChZAbX5qSPJY9bdVLqBdR8h343Ahi6BEmWMGAzDMgn6qvHfQ8yZ1QMXep5pG4QiYcs9j1joHqYwtBCdfD2kcGd5enVHBRhmG5khxTMWvpcNbvWQvRJ

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