Category : Node JS have tutorials for Node JS, here you can study articles of Node JS, Node JS posts collection, most popular and useful tutorials of Node JS, here you can find list of all relevant posts and example about Node JS, we have lists of tutorials and examples about Node JS.very simple and quick example collection of Latest Node JS category.

Laravel 5 - Simple CRUD Application Using ReactJS - Part 1

In this post, i want to share with you how to create crud(Create Read Update Delete) application with react js in PHP Laravel framework. In this example you can learn how to built setup for laravel reactjs application, I also used axios post request, get request, put request and delete request for insert update delete application. we always would like to prefer make setup for any javascript framework like vuejs, angularjs, reactjs etc. here i share with you basic setup for react and laravel with crud application. You have to just follow following 9 step as listed bellow: <strong>1) Step 1 : I.....

By Hardik Savani | December 10, 2017 | | 50772 Viewer | Category : Node JS

Laravel 5 - Simple CRUD Application Using ReactJS - Part 2

In the second link, we will follow rest of two step for react js crud tutorial application example. So let's start to follow 2 step in this tutorial page for laravel react native and here we will generate components file for react server side rendering. <strong class="step">Step 6 : Install Configuration For ReactJS</strong> First things is we need to configure our react app, So we need to run following bellow path for React Preset. <pre class="prettyprint lang-php"> php artisan preset react </pre> Next we need to run following command for install node js so let's run bellow command: <pre cl.....

By Hardik Savani | December 10, 2017 | | 34609 Viewer | Category : Node JS

Laravel 5 - Simple CRUD Application Using ReactJS - Part 3

In last part, we will create view blade file and run our react js crud application, we used axios for run apis. So let's follow rest of two step. <strong class="step">Step 8 : Create Main Blade File</strong> in this step. In this step we have to create just one main blade. So mainly we have to create layout file. So finally you have to create following bellow blade file: <strong>resources/views/welcome.blade.php</strong> <pre class="prettyprint lang-html"> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" co.....

By Hardik Savani | December 10, 2017 | | 23007 Viewer | Category : Node JS

Solved Issue - "/usr/bin/env: ‘node’: No such file or directory"

<br/> In this post i want to share one issue that i fetch. When i started working on my react js project first time on my ubuntu 16.04, i installed npm and then after i run bellow command: <pre> npm install -g create-react-app </pre> this way i installed create-react-app then after i created new command using create-react-app commands, so i run bellow command for create new app of reactjs. <pre> create-react-app hello-world </pre> But when i run above command i found one error <strong>"/usr/bin/env: ‘node’: No such file or directory"</strong>. I thought what will be issue, i searched on go.....

By Hardik Savani | February 24, 2017 | | 22805 Viewer | Category : Node JS

How to connect mysql database in node js with example?

Node.js is very popular in Todays for make chat system, real-time notification, real-time developing etc. So, Today, I am going to give you very simple example of How to use MySQL Query in Node JS. If you use node.js then you can see how it is work and there are several driver for different task like redis, socket io, express etc. But Node.js have a driver for MySQL that way we can easily connect with database and you can use select, insert, update and delete sql query. So, in this example i going to give from scratch so if you are beginner and you haven't installed nodejs on your server th.....

By Hardik Savani | September 29, 2016 | | 17320 Viewer | Category : Node JS

Laravel 5 - Authenticate user in NodeJS with socket io using JWT.

Today, i am going to show you how to authenticate user node js using JWT and socket io in Laravel 5.3. It is very very important because if you are working with chat application or messengers system etc with user then you have to use JWT token because it is very safe and secure way. If we work on chat module with socket io but someone can easily hack our code. At that time we require to check given JWT token is valid or not using <strong class="path">socketio-jwt</strong> package of Node. socketio-jwt package thorough we can simply authentication with user and identify that token is valid .....

By Hardik Savani | September 25, 2016 | | 45318 Viewer | Category : Node JS

Solved - gulp error cannot find module laravel-elixir

If you also find error like "laravel-elixir not found" on gulp then you can install laravel-elixir npm package manually. I also fetch this error when i was new in laravel and working with gulp first time. We can solve laravel-elixir not found error using laravel-elixir nodejs package. So you can run just bellow command and check. First command if you run already then don't require to run. <strong>Command:</strong> <pre class="prettyprint lang-php"> npm install npm install laravel-elixir </pre>

By Hardik Savani | July 22, 2016 | | 17748 Viewer | Category : Node JS

How to upgrade node.js version in Ubuntu?

In this post i want to share about how to update node version in ubuntu OS. I would like to share this post because i try lot to update my node js package. When i install 0.10.25 nodejs but i want to update nodejs current latest version. At that time i did try lot to upgrade but i can't update my node. I have ubuntu 14.04 OS. One time i was working on native script framework and i need to update nodejs package at that time my Project Manager give me some command for update nodejs current version. I don't know where he found but now my system have latest version of node. So if you also want t.....

By Hardik Savani | April 12, 2016 | | 20003 Viewer | Category : Node JS

How to use foreach object in Nodejs ?

Normally, we does use foreach loop in PHP, JS etc, but when i was working on socket programming at that time i require to use foreach of object in server.js. I did also search on google and try to how to use foreach in Node JS. At last i found to use forEach and solve it. so, let's see following example. <strong >Example</strong> <pre class="prettyprint lang-php"> socket.on("newmessage", function(obj) { obj = JSON.parse(obj); obj.forEach(function(items) { console.log(items.userid); var e = "notify-"+items.userid; io.sockets.emit(e, 1); }); }); </pre>

By Hardik Savani | March 31, 2016 | | 27998 Viewer | Category : Node JS

Laravel 5.2 chat message module using, redis, express and nodejs from from scratch.

In this tutorial, i going to show you how to make real time chat message module using, redis, express and nodejs in Laravel 5. through we can make real time chat module in our Laravel 5 application. i show you from scratch because you can install nodejs and its packages etc. in this post you can undestand and learn step by istalling and how to write code. You have to follow the step and implement real time chat module in your application. So basically you can see bellow preview of our chat message module. <strong>Preview:</strong> <img width="100%" src="/upload/socketio.png.....

By Hardik Savani | March 12, 2016 | | 208534 Viewer | Category : Node JS