Docker Compose – Dockerizing Nodejs MySQL REST API CRUD Example

Introduction In this tutorial I am going to explain you how to use docker compose to dockerize your Nodejs MySQL REST API for CRUD operations. I am not going to tell you here how to build the REST CRUD application but you can always go back and check the detail tutorial on this here. I am only going to show you how to dockerize your app using docker compose in Linux environment. It is a best practice for a container to have only one process with single responsibility. But as…

Continue

NodeJS Express MySQL REST API CRUD Example

Here I am going to show you how to create REST API CRUD example using Nodejs Express and MySQL server. CRUD means Create, Read, Update and Delete operations which are performed through REST (Representational State Transfer) resources that works on http/https protocol. REST resources or APIs work on verbs, such as, GET, POST, PUT, DELETE, etc. So it is obvious that GET means you need to fetch data from the server endpoint, POST means you need to create the new resource on server endpoint, PUT means you need to update…

Continue

How to build chat application using Nodejs, Express and Socket.IO

Introduction In this example we will see how to build chat application using Nodejs, express and socket.io. You can find the original demo at https://socket.io/. This chat application has the following features: Asks for nick name from participant Tracks how many participants are there in the room Tracks who joins the room Tracks who leaves the room Tracks who is typing a message Displays the message with name

Continue

How to Create New Angular Project on Windows

Introduction Here you will see how to create new AngularJS project on Windows environment. We will use node.js and npm for setting up the new AngularJS project on Windows environment. Please make sure you have npm and node.js setup on Windows system before you proceed further. Prerequisites Knowledge of HTML, JavaScript and CSS Please make sure you are running at least Node.js version 8.x or greater and npm version 5.x. You can check the version by running node -v and npm -v in a console(cmd) window.

Continue

Create React JS Application on Windows

In this tutorial I am going to show you how we can create React JS application in Windows environment. Before reading this tutorial please make sure you have installed the node.js in your system. Please have a look at this here for node.js installation Prerequisites I’ll assume you do have some familiarity with HTML and JavaScript, but you should be able to follow along even if you haven’t used them before. Please follow the below steps one by one in order to create React application.

Continue

How to Install Node.js and NPM on Windows

I am going to show you how to install node.js (zip) on Windows OS. Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine and it uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js package ecosystem, npm, is the largest ecosystem of the open source libraries. Here I am going to show you how to install zip version of node.js, not Windows installer (msi).

Continue

ReactJS REST API PUT Example

Introduction Here I will show you ReactJS REST API PUT Example. In this tutorial I will show you how to update the existing resource via REST API PUT request using React JS framework. I will use ready made available REST API https://jsonplaceholder.typicode.com/posts for testing purpose. You can also create and deploy your own service using PHP, Codeigniter or Spring, Jersey etc. and call using React JS framework.

Continue

ReactJS REST API POST Example

Introduction React is a declarative, efficient, and flexible JavaScript library for building user interfaces. In this tutorial I will show you how to create new resource via REST API POST request using React JS framework. Here I will use ready made available REST API at https://jsonplaceholder.typicode.com/posts for testing purpose. You can also create and deploy your own service using PHP, Codeigniter or Spring, Jersey etc. and call using React JS framework. Here you will see only HTTP POST example.

Continue

ReactJS REST API GET Example

Introduction Here I will show you ReactJs REST API GET Example. React is a declarative, efficient, and flexible JavaScript library for building user interface. In this tutorial I will show you how to fetch data from REST service using React JS framework. Here I am going to use sample and ready made available REST API https://jsonplaceholder.typicode.com/posts for testing. You can also create and deploy your own service using PHP, Codeigniter or Spring, Jersey etc. and call using React JS framework. Here you will see only GET example.

Continue