Saving The Environment With React Hooks

Using React Hooks To Save the Environment

James Bradley Articles, Node.js, Programming, React, TypeScript Leave a Comment

Attention: This article was published over 5 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.Every application has some need for environmental variables that are specific to that environment. This can be database connections strings or URL to an …

React with Socket.IO Messaging App

Peter Le Articles, Development Technologies & Tools, Node.js, React 2 Comments

Attention: This article was published over 5 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.Building a messaging app sounds complicated, but it really isn’t. With the right tools, creating one might be simpler than you think. In this …

loosely coupled code

Creating Loosely Coupled NodeJS Applications: Part 1

Eric Smallwood Architecture, Articles, Microservices, Node.js 1 Comment

In this post, I will be introducing three strategies that can help Node developers who wish to loosen their code. First, weโ€™ll cover microservices with Moleculer. Then, weโ€™ll through Inversion of Control with InversifyJS. Finally, weโ€™ll discuss N-Tier Architecture and why itโ€™s helpful.

JavaScript Shortcuts from a Seasoned Professional

Brian Jacobs Articles, JavaScript, Programming, Tutorial Leave a Comment

Iโ€™ve spent the past 15 years of my career working as a web developer. Over those years, Iโ€™ve learned and created various shortcuts to help ease development. So, I figured Iโ€™d share them with you. This short write up lists some of the JavaScript tips and tricks that Iโ€™ve picked up during my career.

The first snippet Iโ€™ll cover is one Iโ€™ve only used in a very specific, unique circumstance. It may not be relevant to all of you, but I wanted to share for the few it would apply to. The rest are snippets I use on nearly a daily basis. No matter your situation or requirements, you should be able to find at least one that you can adopt.

JSON Server for API Mocking

JSON Server to Mock API Servers: A Quick and Easy Solution

Todd Leininger API Development, Articles, Cloud, Development Technologies & Tools, JavaScript, Testing, Tutorial Leave a Comment

I have found myself in the following scenario many times throughout my career. Everyone is ready to get the project started. You know what you are going to be working on, and as the frontend developer, you get started right away. You get to the point that you are ready to test your code to see how the API calls work. Thereโ€™s one major thing in your way, though. The APIs aren’t done yet.

You could just create some static JSON files and read them in, but that doesn’t really test out calling an API. Thatโ€™s where JSON Server swoops in to save the day. In this post, Iโ€™ll walk through how to use JSON Server. Weโ€™ll set up our environment, serve a simple JSON file, and generate mock data.