Posts Tagged: API


Building a Simple Node.js Express API

At the end of my last post, Connecting MongoDB to Node.js, I walked through a brief example of how to connect a local MongoDB server to a Node.js Express app. We finished with an app that basically does nothing except create a model for a Todo and connect to a local Mongo database. So if...

Read More

Connecting MongoDB to Node.js

If you read my post Getting Started with MongoDB, I went over some basic instructions to start a mongoDB server on a windows PC. This post will be all about connecting that database to a local Node.js express back-end, so if you aren’t up to speed with Mongo be sure to check out that post...

Read More

JSON Post Requests

APIs are fantastic and it’s no secret that developers love them. In short, APIs are a set of rules that allow for two different software components to communicate with one another in an automated way. In this article I will look at how to use PHPs file_get_contents to send a JSON POST request to a...

Read More