Giter Site home page Giter Site logo

tutorialonnodejs's Introduction

TutorialOnNodeJs

STEP 1 :

Please create database in mysql with the 2 of these tables :

CREATE TABLE productcategory ( Id int(11) NOT NULL AUTO_INCREMENT, CategoryName varchar(100) NOT NULL, Details varchar(400) DEFAULT NULL, IsValid tinyint(1) NOT NULL, CreatedDate datetime NOT NULL, ModifiedDate datetime DEFAULT NULL, PRIMARY KEY (Id), KEY idx_productcategory_CreatedDate (CreatedDate) COMMENT 'Added Index on the createdate' ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;

CREATE TABLE product ( Id int(11) NOT NULL AUTO_INCREMENT, ProductCategory_FK int(11) DEFAULT NULL, ProductCost float NOT NULL, Name varchar(200) NOT NULL, Description longtext, CreatedDt datetime NOT NULL, IsActive tinyint(1) NOT NULL, UpdatedDt datetime DEFAULT NULL, ProductPrice float NOT NULL, PRIMARY KEY (Id), KEY FKC_Product_to_ProductCategory_idx (Id,ProductCategory_FK), KEY FKC_Product_to_ProductCategory (ProductCategory_FK), CONSTRAINT FKC_Product_to_ProductCategory FOREIGN KEY (ProductCategory_FK) REFERENCES productcategory (Id) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

STEP 2:

Please find the code Inside the Server/Dao/mysqlConnectionString.js; include your mysql connecting string information such as host name, user, password, database etc

connection :{

    dev : {
        host: 'localhost',
        user: 'root',
        password : 'yourdevpassword',
        database : 'yourdevdatabase'
    }

    ,

    qa : {
         host: 'localhost',
        user: 'root',
        password : 'yourtestpassword',
        database : 'yourdatabase'
    }
    ,prod : {
        host: 'urProductonHost',
        user: 'userId',
        password : 'password',
        database : 'databaseName'
    }

}

tutorialonnodejs's People

Contributors

learncodetoday avatar easyitsolution4u avatar

Stargazers

Jose RF Junior avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.