Reading list Switch to dark mode

    How To Use Programming With Opencart-Part1

    Updated 4 June 2016

    Today we will learn how to implement socket programming with opencart. For implement the socket programming we first need to install node.js on our server. After this we have to create a package.json file parallel to your opencart root directory. Now we have to write the code for including the package or other required package into package.json file.



    Description:- We have to define some parameters before using programming. Those are following:

    Name: Into package.json file we have to define our Application Name which we are going to implement.

    Searching for an experienced
    Opencart Company ?
    Find out More

    Version: Its show dependency version.

    Description: You can use description parameter for defining description to your application.

    Dependencies: Under this parameter we have to define the package name which are going to use into our application.

    After doing all this we have to install these package which we defined into package.json file. Go to your terminal and type theme command:-

    Command to install the node into your opencart root directory:-

    $ npm install


    You can also install a particular dependency by defining the dependency name into command:

    $ npm install


    After installing the required package(dependencies) you will find a directory node_modules with all  the dependency to your opencart root directory.

    Now you can use javascript library in you application. In next blog we will explain how to implement a chat application. Thanks for reading this blog 🙂

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*

    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home