Skip to content

Alex Rusin Blog

  • BlogExpand
    • AWS
    • Javascript Development
    • Remix
    • PHP MySQL Development
    • Laravel
    • System Administration
    • WordPress Development
    • Magento
    • Uncategorized
  • My Projects
Alex Rusin Blog
  • Sorting REST API Results
    Javascript Development

    Sorting REST API Results

    Byalexrusin November 30, 2023December 10, 2023

    In this article we will look at how to sort results when using a GET request that returns a list. Implementing sorting functionality in a RESTful API is a crucial aspect of designing a robust and user-friendly web service. Sorting REST API results empowers developers and end-users alike by providing a systematic and organized way…

    Read More Sorting REST API ResultsContinue

  • Javascript Development

    Sequelize Seeders: Generating Test Data

    Byalexrusin November 19, 2023

    In this article we will look at how to use Sequelize seeders to seed the database with test data and use Faker library to generate the test data. We will continue working in the project travel-api-db-migration-service we created in the video Sequelize Migrations. Please, watch that video if you would like to see how the…

    Read More Sequelize Seeders: Generating Test DataContinue

  • REST API Delete Resource
    Javascript Development

    REST API Delete Resource

    Byalexrusin November 5, 2023November 5, 2023

    In this article we will look at REST API Delete operation. Compared to Create and Update, Delete operation is fairly easy and straightforward. REST API Delete Implementation Below, we will outline the basic steps of Delete operation implementation. Please, watch our video for more in depth explanation of this concept. Route and Controller In routes/v1/travels…

    Read More REST API Delete ResourceContinue

  • REST API Update Resource
    Javascript Development

    REST API Update Resource

    Byalexrusin October 29, 2023October 29, 2023

    In the previous article REST API Request Validation we looked at how to create a resource using POST request and Joi validation. In this article we will look at how to use REST API Update operation to modify a resource. We will also be using Joi validation to ensure security and consistency. Compared to creation,…

    Read More REST API Update ResourceContinue

  • Javascript Development

    REST API Request Validation

    Byalexrusin October 22, 2023July 14, 2024

    In this article we will look at how to validate POST requests to the REST API using Joi library. Joi lets you describe your data using a simple, intuitive, and readable language. We will also look at how to turn Joi errors into 422 Validation Error API responses. Describe REST API Request Shema with Joi…

    Read More REST API Request ValidationContinue

  • Javascript Development

    API Gateway Webhooks Lambda HMAC Validation

    Byalexrusin October 15, 2023February 16, 2025

    In the previous post HMAC Validation we explored how to validate HMAC in an API project. The video Webhooks Processing: HTTP API Gateway + SQS +Lambda shows how to created a scalable solution for receiving webhooks and throttling them with SQS and Lambda. In this article we will look at how to use HMAC Validation…

    Read More API Gateway Webhooks Lambda HMAC ValidationContinue

  • Javascript Development

    HMAC Validation

    Byalexrusin October 7, 2023October 8, 2023

    In this HMAC Validation tutorial, we will define what HMAC is, its benefits, and implement HMAC validation as a middleware in an API project. HMAC stands for hash-based message authentication code. An HMAC algorithm works by hashing a message along with a secret key. The resulting hash is called a signature or digest. The message…

    Read More HMAC ValidationContinue

  • Javascript Development

    API Testing with Jest Mocks and SuperTest

    Byalexrusin October 1, 2023September 28, 2024

    One of the main challenges in doing API testing is database dependency. In the last article Repository Pattern in JavaScript we looked at how to abstract data access operations. One of the main characteristics of the pattern is Testability: The Repository Pattern facilitates unit testing because you can easily replace the actual data access logic…

    Read More API Testing with Jest Mocks and SuperTestContinue

  • Javascript Development

    Repository Pattern in JavaScript

    Byalexrusin September 26, 2023September 28, 2024

    The Repository Pattern is a structural pattern that abstracts and centralizes data access operations, providing a consistent and simplified interface for the application to interact with data sources. In essence, the Repository Pattern acts as a mediator or a middleman between the application’s business logic and the data storage, shielding the rest of the code…

    Read More Repository Pattern in JavaScriptContinue

  • Javascript Development

    Environment Variables in JavaScript

    Byalexrusin September 17, 2023October 7, 2023

    Environment variables in JavaScript are a set of key-value pairs that can be used to store data outside of the JavaScript code. This data can be anything from API keys to database credentials. Environment variables are often used to keep sensitive data secret, as they are not stored in the code itself. We can import…

    Read More Environment Variables in JavaScriptContinue

Page navigation

Previous PagePrevious 1 … 4 5 6 7 8 … 14 Next PageNext

© 2025 Alex Rusin Blog - WordPress Theme by Kadence WP

  • Blog
    • AWS
    • Javascript Development
    • Remix
    • PHP MySQL Development
    • Laravel
    • System Administration
    • WordPress Development
    • Magento
    • Uncategorized
  • My Projects