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 install new Angular framework or update/upgrade the existing Angular version and how to create new Angular project on Windows environment. I will use node.js and npm for setting up the new Angular project on Windows environment. If you are using different Operating System then you have to check the installation process according to your Operating System (OS), but I think the following commands should work on most of the OS.

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 (Operating System). 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). Installing zip archive of the software has some benefits, such as, you don’t need to remove anything from…

Continue

ReactJS REST API DELETE Example

Introduction In this tutorial I will show you how to delete the existing resource via REST API DELETE 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 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