Node.js Express Rest Api Tutorial

Nodejs Express Rest Api Tutorial

Let’s see how to build a simple REST api using Express to allow for all of the CRUD operations. REST is referring to Representational State Transfer. It is a convention for building HTTP services via a client and server architecture. In REST, the HTTP protocol is used to facilitate Create, Read, Update, and Delete of resources on the server. These operations can be referred to collectively as CRUD operations.…

Node Package Manager Tutorial

npm tutorial

This npm tutorial will focus on Node Package Manager, or NPM as it is commonly referred to. NPM serves two main functions. It is a command line tool for running all kinds of development tools and scripts, in addition to a registry of third party libraries. In fact, at the last count NPM has something like 650,000 software packages available! This means for any problem you are trying to solve with Node.js, there is likely a free package already created that you can leverage in your own project.…

Express.js Beginner Tutorial

Expressjs Beginner Tutorial

In this Express beginner tutorial, we can download and install Express.js to our system and see how to get a super basic skeleton application set up and configured. Thankfully, this is made pretty easy by the fact that there is a dedicated tool to create a new Express project automatically called Express Generator. Let’s take a look at how the complete beginner can get up and running with Express.js right away.…

Node.js Routes Tutorial

Nodejs Routes Tutorial

In our last Node.js tutorial, we learned how to render some very basic html to the screen. Of course an actual website or application will have many different html files to present to the user. Typically you will need some type of routing mechanism to handle this. In this episode, we’ll take a look at a routes example where a user can load different urls in the browser.…

Render HTML In Node.js

render html with nodejs

Let’s see how to create a server and render some HTML in Node.js. First up, we will create a new file named server.js in our project root. We are writing our first server in Node.js! It might seem odd if you’re coming from a PHP background to talk about creating our first server in a JavaScript file, but that is in fact what we are about to do.…