Note: This is part one is a series where we will go from idea and hacky code to a generalised abstraction that we will publish as an open source library on NPM
I’m not gonna lie, parallax websites don’t have the best reputation in certain circles, and rightly so. Too often the parallax effect is achieved through some kind of hijacking of the user’s scroll position on the page. This just leads to an awful experience that makes many hate the concept. However, there are plenty of good examples of this effect all over the internet.
The key to a…
If you are anything like me, you have wasted countless hours of your life using ctrl+f to find functions inside your code. If you only have one file, ctrl+f is still going to be your best bet. But as soon as you start dealing with many files, the debug() method becomes a life saver!
This isn’t going to be a long one today. …
Starting off, here is the very boring HTML that I started with.
<h1>Experimenting With console.time()</h1>
If we want to time how long…
Console.log() is great for that. But is it always the best solution?
Some of you may already know about console.log()’s lesser known brother, console.table(). Although, I would take a guess that many of you have never heard of it. I certainly hadn’t heard of it until relatively recently.
I don’t really know why it is such an obscure thing because it is extremely…
This is part 4 of a 4 part series on building an API in Express I posted over on my website.
So we have our API routes and we have our data. Next step is to add in the database to actually store our data. In this tutorial we will be adding MongoDB to the project.
MongoDB is just one database we could choose from. There are many different types. Another Popular one is MySQL. In this case I have chosen Mongo purely because of the easy with which we can set it up and get going with it…
This was originally posted on my website: Serving Data With ExpressJS
In the original AngularJS quiz app tutorial I just pasted the data we used for the facts and quiz into the data service. This series is obviously dealing with the creation of an API to serve that data. That would involve storing the data in a database and fetching it when the user requests it.
The database is something we will cover in the next part of this series. For now I am going to take the same data we had in the data service and paste it…
This is part 2 of a 4 part series where we create an API in express. It was originally published over on my website: Using ExpressJS Router
Some of you may be thinking that things may get pretty messy if we have to put all of the app.get and other request handler code into a single file. What if we have an api with 1000s of routes? That is going to get real messy real quick.
Fortunately, the wonderful people that develop express understand this and gave us something called Express Router. In a nutshell express router allows us…
This is part one of a series originally published on my website where we build an express JS API
A while ago (probably too long, i’m sorry) I made a tutorial that showed you how to make a quiz app in AngularJS. That tutorial was entirely focused on the front end and hardcoded the data. This time we will take that data and build it into an API for the quiz app to consume.
While I will be using the data from the quiz app, no prior knowledge of the app is required to complete this tutorial, so even…