Logging is an essential part of application. According to Twelve-Factor App methodology it’s the XI factor of application development. A proper logging gives you a valuable insite of your application. In Node.js application, it is always suggested to use logging libraryrather than just using console.log in productione environment. Log4js, Bunyan , and Winston are the …
Javascript
Automate static website deployment on AWS S3 using CircleCI
This is the very common practice now hosting a static site in AWS S3. Not only normal HTML CSS app, you can host angular, react or any kind of rich JavaScript app in S3. In my last tutorial, I explain how you can deploy your static website or contents into AWS S3. Today, I will …
Asset Management and Font Awesome Icons in Production Sails App
I am writing this post just to solve a small problem that I’ve recently experienced while deploying a Sails App in production server. All the CSS and JS files are working very well except the Font Awesome Icons. At the beginning I was not understanding why it’s not working in production server when it was …
Inherit attributes and methods of Sails.js Models
Yeah, now I am working on an interesting Node.js project where I am using Neo4j as Graph database with Sails framework. Neo4j is very new in the market, thus there is very little good DB libraries and adapters available for Sails framework. So, I decide to write some custom model methods (using an active record …
Install Node.js From Source via GIT
Yeah!!! I am going to give to try Node.js by creating small product. But don’t have Node.js developing environment ready in my work station. So, I installed by compiling from source via GIT repo. I can switch and update it easily. It’s quite easy. Just follow me. If you don’t have installed GIT in your …
Object Oriented In Javascript
Last few days I passed with Javascritp with its OOP concept. I found some beauties in Javascript programming language. So far everything we use in Javascript as function. But the object oriented concept is also available in the Javascript. Through Javascript is a class-less language but everything is an object in the Javascript. Basically, Javascript …
Dynamically add and delete html table row on user click using jQuery
This is very simple javascript function using jQuery library for deleting or adding html table row on user click. Basically, I had to write this functionality for one of my client’s projects. There was a table with some input fields in each row what user can manipulate by inserting data, adding or deleting those rows. …