On my quest to teach myself Node, Express and various other JS frameworks, I recently built an API serving multiple frontends in one big application. It’s presentend in the same way as TodoMVC where there is a dashboard page with links to other pages, each containing the same app implemented using a different technology. When I first got started with this project my …
Upload an Image using the MEAN Stack
I’m currently working on a little “Travel Diary” side project to learn more about NodeJS, Javascript frameworks and Fullstack development in general. I’ve started off by using the traditional MEAN stack (MongoDB, Express, Angular and Node), but will be switching out Angular in the future to explore other frontend frameworks. One of the requirements of this project is to include some sort …
Floating Elements with Flexbox
The CSS float property allows you to tell an element where to align itself, in respect to the content around it. Using floats used to be the only way of developing responsive web pages. In fact, floats are still used by most major “grid” systems like Twitter’s hugely popular Bootstrap framework. The problem with floats is that they weren’t designed for overall site layout …
The Easiest Way To Mock Dependencies In AngularJS Unit Tests
At my day job, we’ve recently embarked on a project to improve our test coverage for our AngularJS based mobile site, which currently sits at a measly 40%. So I’ve been writing lots of unit tests lately and keep trying to find ways to make this tedious process a little bit easier and more enjoyable. A few days ago I discovered …