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

How to Test a NodeJS REST API With Mocha


Over the past few months, we’ve been getting really into Node here at Chiedo Labs. And man, it’s powerful. With that being said, you know how the saying goes. With great power comes great responsibility. If you’re not writing tests for your code, it’s quite arguable that you aren’t being responsible. So we stopped being […]

Read more

Picture of Chiedo

Setting up JSON Web Tokens using the jwt gem with Devise for a Rails 4 site


This blog post is heavily inspired by this. It didn’t quite work for me so I made some modifications and figured I’d write a post about it. This tutorial assumes that you already have a standard Devise set up on a rails 4 environment. Install the ruby-jwt gem Add the following to your gem file: gem ‘jwt’, […]

Read more

Picture of Eric

eMemory efficient, cross-platform solution for handling login view in Titanium Alloy


Most mobile apps have some type of login functionality where a user is prompted to login when they first download the app, or after they have logged out. Using the open-source Titanium Alloy framework, I had to solve the problem of showing a login view if a user is not logged in, and if they […]

Read more

Picture of Chiedo

How to Authenticate Your ReactJS App With Devise. No Gems Needed.


I love using Devise on my Rails projects and love ReactJS but figuring out how to hook the two together was more complicated than I would have liked. So I figured I’d share my findings! Comments and criticisms are always welcome. To preface this post, it makes sense to describe my setup. I’m running a Rails […]

Read more

Picture of Ricardo

PHP doesn’t have to be ‘dirty’. PHP Coding Standards Using PSR.


Even with all the AWESOME, BEAUTIFUL, FUNCTIONAL and  LIGHTWEIGHT frameworks out there, PHP is still king (as far as use case goes).  PHP is used by** 81.9%** of all the websites whose server-side programming language according to w3 Techs. PHP is easy to get up and running; and simply start coding.  After learning HTML and […]

Read more

Picture of Chiedo

How to Create a React App on a Rails API (Without react-rails)


ReactJs is awesome and Ruby on Rails is awesome. Yes, I get that Ruby on Rails is a resource hog and there are much better choices for serving a ReactJs app on that front… but Rails development is fast and when my developers work on Rails projects, they’re productive. So we wanted to throw ReactJS […]

Read more

Picture of Chiedo

How to Make Selenium Tests More Consistent


Selenium is an incredible tool for automating integration tests and has definitely allowed me to have more confidence deploying changes to websites on-the-fly. It has especially helped when those websites are based on CMS frameworks like WordPress that are plugin heavy and don’t have a clear path for writing unit tests. But initially, when writing my […]

Read more