Chiedo Labs Web Development Harrisonburg VA & Charlottesville VA web design
Picture of Chiedo

Rendering Server-side JS on a PHP Server with V8JS


Currently, I’m on a journey to see if I can render some React components server-side on a PHP server. First step, we need to get the V8 engine running within PHP. I got this working on my Mac with MAMP, PHP 7.0.10, and V8JS. With that being said, I suspect this would be easy to reason about to […]

Read more

Picture of Chiedo

Using JSDoc in your NPM Module to Automate your Docs


As we’ve been working on more npm packages in recent months, we wanted to make sure we properly documented our codebases. More than the usual code comments. We wanted to create documentation pages so new developers on our team would be able to easily dive in without a million questions. A few days ago, we […]

Read more

Picture of Chiedo

Adding a Private NPM Module to Your Project


Recently, we started creating and working with private npm modules at Chiedo Labs. It’s pretty simple but here are the steps. 1. Create an npmjs.org account if you don’t have one If you already have an account, you can skip this step. Otherwise, you can sign up for a free npmjs.org account here. 2. Login […]

Read more

Picture of Chiedo

Setting Up Private NPM Modules with Heroku


Recently at Chiedo Labs, we started working with private npm modules. Getting things working with our local development environments was trivial. But getting things working on Heroku was not, so here’s what we learned after a few Google searches. 1. Generating an Authentication Token First, we needed to generate an authentication token that Heroku could […]

Read more

Picture of Chiedo

4 Essential Steps Before You Build Your App

We’ve all heard it. “90% of startups fail.” Whether that’s true or not, only Pinocchio knows. But what I do know is that most of the apps entrepreneurs create don’t succeed. The same way Shaquille O’Neal doesn’t succeed with the majority of his three point shots. And it’s usually because entrepreneurs build apps that they […]

Read more

Picture of Ricardo

Fixing the ‘regeneratorruntime is not defined’ error while using async-await


Async Await Ever since node 7.10.1 async-await functionality has been available, making our asyncronous code look more like syncronous code and therefore more readable. The Problem With my node up to date, I began using async await in my code. I was loving how clean and readable everything was when I ran into an error. […]

Read more

Picture of Ricardo

Making my tests pass and fail properly using mocha and ansync/ await.


Recently I was adding tests to an app written in node and express. The app utilizes mocha for testing. The previously written tests, which used Promises, were working well. We had recently upgraded node for the app so I wanted to write my new tests with Async / Await. I don’t get into the details […]

Read more

Picture of Chiedo

Automatically optimizing images with each git commit


Optimized images are good for everyone. There’s no good reason not to want to do it. They’re great for fast browsing and great for SEO. The problem is that they’re really freaking easy to forget. So I asked myself. How could I automatically optimize all images before each git commit? Here’s what I came up […]

Read more

Picture of Chiedo

How To Use Bower as a Git submodule Alternative


It happens every now and then. You’re working on a group of projects and realize that many of them are using some of the same codebase. So you decide to split things up into modules and seperate projects. This is simple when you are writing public code but more complicated when you want to keep […]

Read more

Picture of Eric

How to Use Test Doubles in RSpec


Introduction I was first introduced to Rspec a few years ago when I went through a rails tutorial and I was enamored by it, especially TDD (test-driven development).  Rspec is a testing framework for Rails that allow you to test your models, controllers, and run integrations tests to make sure all the parts work together smoothly. […]

Read more