Open in app

Sign In

Write

Sign In

Brian Lego
Brian Lego

80 Followers

Home

About

Pinned

Deploying a Rails/React app to Heroku

If you’re looking to take a project with a Ruby on Rails API backend & React frontend into production, look no further. Over the past few weeks I’ve been working to deploy a number of my projects onto the Heroku platform. …

Heroku

7 min read

Deploying a Rails/React app to Heroku
Deploying a Rails/React app to Heroku
Heroku

7 min read


Published in JavaScript in Plain English

·Jan 31, 2021

Authentication in Node.js

Part 3 — In the final part of my Authentication in Node series I’m going to add three last pieces of functionality to my backend Node server. First will be what I’m calling a ‘grab user’ function, which essential will run every time the frontend gets reloaded, refreshed or redirected to take the…

Authentication

5 min read

Authentication in Node.js
Authentication in Node.js
Authentication

5 min read


Published in JavaScript in Plain English

·Jan 25, 2021

Authentication in Node.js

Adding Validation (Part 2) — This is a continuation on the piece I wrote about adding Authentication into a Node project using HTTP cookies, BCrypt and JWT tokens. Previously, I had set up my application to accept an incoming request where a user was signing up. I then took that info, hashed the password, saved…

Authentication

5 min read

Authentication in Node.js
Authentication in Node.js
Authentication

5 min read


Published in JavaScript in Plain English

·Jan 17, 2021

Authentication in Node.js, with HTTP Cookies, JWT & BCrypt

Part 1 — So, you’ve decided to finally broach the topic of authentication within your Node application. Come to find out there are of course a ton of ways to implement Auth within Node, so where do you start? First choice is to decide whether you want to just let a third party…

Nodejs

6 min read

Authentication in Node.js, with HTTP Cookies, JWT & BCrypt
Authentication in Node.js, with HTTP Cookies, JWT & BCrypt
Nodejs

6 min read


Published in JavaScript in Plain English

·Jan 10, 2021

Refactoring Promise Chains w/Async-Await

In my never ending journey of refactoring and refining my code my most recent endeavor has been in writing cleaner and easier to read code with the help of async-await Up until recently I had only used JavaScript & Promises primarily within the context of writing React code. As far…

Java Script

4 min read

Refactoring Promise Chains w/Async-Await
Refactoring Promise Chains w/Async-Await
Java Script

4 min read


Published in JavaScript in Plain English

·Jan 2, 2021

Redux Toolkit (Immer & Thunk)

In my last post I did a short walk through of refactoring existing Redux code to utilize the Redux Toolkit and React-Redux Hooks. That article can be found (here) and seeing as I will be adding on to the demo started there it may be a good place to start…

Redux

6 min read

Redux Toolkit (Immer & Thunk)
Redux Toolkit (Immer & Thunk)
Redux

6 min read


Published in JavaScript in Plain English

·Dec 27, 2020

Refactoring Existing Redux w/ Redux Toolkit & Hooks

During this year’s Reactathon one of the coolest presentation I had to chance to catch was with Mark Erickson. He was there to present some modern Redux techniques and specifically the React Toolkit and the use of the ever popular *hooks*. It inspired me to go back and refactor some…

Redux

6 min read

Refactoring Existing Redux w/ Redux Toolkit & Hooks
Refactoring Existing Redux w/ Redux Toolkit & Hooks
Redux

6 min read


Sep 28, 2020

React Hooks: A Quick Introduction

When learning about React for the first time one of the very first decisions you’re faced with is which way to write your components. React gives you two different variants for this choice: Class Components & Functional components. Initially when I was trying to wrap my head around this and…

4 min read

React Hooks: A Quick Introduction
React Hooks: A Quick Introduction

4 min read


Sep 8, 2020

Helpful Tips and Tricks: Chrome DevTools

Upon my own personal journey to learn and become familiar with JavaScript I’ve found probably the Most helpful tool in refining my code is without a doubt Google Chrome’s DevTools. Anyone who has “inspected” a webpage probably has some understanding of how truly powerful the DevTools are. They include…

Devtools

5 min read

Helpful Tips and Tricks: Chrome DevTools
Helpful Tips and Tricks: Chrome DevTools
Devtools

5 min read


Aug 17, 2020

Refactoring ActionView Form Helpers

Since Rails 5.1 theres a new form in town and it goes by the name of ‘form_with’. The Predecessors: <form_for> & <form_tag> Those familiar with Ruby on Rails know that the two main Form Helpers that Rails provides out of the box are <form_tag> and <form_for>. …

Ruby On Rails

3 min read

Refactoring ActionView Form Helpers
Refactoring ActionView Form Helpers
Ruby On Rails

3 min read

Brian Lego

Brian Lego

80 Followers

Software Engineer based in NYC

Following
  • Colton

    Colton

  • Denis Cangemi

    Denis Cangemi

  • Elijah Smith

    Elijah Smith

  • Mark Bacon

    Mark Bacon

  • Alex Foreman

    Alex Foreman

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech