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
  • 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

  • Javascript Development

    Automatically Log or Append Data to Express Response

    Byalexrusin July 14, 2022October 7, 2023

    Sometimes you need to log Express response in order to see what your application responded with. Doing it for each route can be tedious. A better approach is to use a middleware. The middleware also gives you the flexibility to choose responses from which routes to log. When you have access to your response in…

    Read More Automatically Log or Append Data to Express ResponseContinue

  • Javascript Development

    How to Configure ESLint with Prettier in React Project

    Byalexrusin July 30, 2021August 4, 2021

    Install ESLint and Prettier Many modern JavaScript Projects use ESLint with Prettier setup. While ESLint keeps the style in good shape, Prettier is used to autoformate the code. In this article we will show our approach to setting up a React project with ESLint and Prettier (AirBnB). Let’s create a project and name it eslint-prettier-airbnb…

    Read More How to Configure ESLint with Prettier in React ProjectContinue

  • Javascript Development

    Logger Tagged Template Literal

    Byalexrusin April 10, 2021April 10, 2021

    In his GitHub book You Don’t Know JS Kyle Simpson talks about tagged template literals. In Front End Master course he also gives an example of a useful console logger tagged template literal shown below: Here is how to use the function above: Here’s the output: References You Don’t Know JS Frontend Masters course JavaScript:…

    Read More Logger Tagged Template LiteralContinue

  • Laravel | System Administration

    Automated Deployment of Laravel Project

    Byalexrusin April 4, 2021April 4, 2021

    In this article I would like to share my approach to automated deployment of a Laravel project. I have been successfully using this approach for my side projects. In this article I will share Laravel project deployment on Linux (Digital Ocean) server. In a nutshell deploying Laravel project consists of “building” it (installing composer dependencies,…

    Read More Automated Deployment of Laravel ProjectContinue

  • Javascript Development

    Logger Setup with Winston

    Byalexrusin February 12, 2021April 5, 2021

    A simple setup with winston logger:

    Read More Logger Setup with WinstonContinue

  • Laravel | PHP MySQL Development

    Adding Email Headers in Laravel Application

    Byalexrusin October 2, 2020September 17, 2023

    Adding email headers in Laravel application is quite simple. SwiftMessage can be customized using withSwiftMessage method of Mailable base class: https://laravel.com/docs/8.x/mail#customizing-the-swiftmailer-message However you have to remember to do it every time you create a new “mailable” class. Some mail APIs require you to put a special header each time you send an email. In this…

    Read More Adding Email Headers in Laravel ApplicationContinue

Page navigation

Previous PagePrevious 1 … 4 5 6 7 8 … 13 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