All Categories

  • How to Delete Data from MongoDB with Node.js and Mongoose

    8/11/2020 -
    This blog will show a tutorial about how to delete data from MongoDB by using Node.js with Mongoose. Mongoose is the Object Data Modeling library for MongoDB and Node.js. It provides functions for schema, query building, and more. If you don't use Mongoose to access MongoDB with Node.js, then you can use the MongoDB package for Node.js directly.  Get Start First, initialize a new npm package, we'll create a new package and new file, and add our code for how to insert data to MongoDB. npm init -y Next, let's install the mongoose package, this will be the only package we'll use for this tutorial.  npm install --save mongoose Create an index.js, we'll add our code to this file to connect to MongoDB and insert data to the Database. Connect to the MongoDB Now, the following is a sample code to connect to MongoDB.
    MongoDBNode.jsMongoose
  • How to Insert Data into MongoDB with Node.js and Mongoose

    7/11/2020 -
    This blog will show a tutorial about how to insert data into MongoDB by using Node.js with Mongoose. Mongoose is the Object Data Modeling library for MongoDB and Node.js. It provides functions for schema, query building, and more. If you don't use Mongoose to access MongoDB with Node.js, then you can use the MongoDB package for Node.js directly.  Get Start First, initialize a new npm package, we'll create a new package and new file, and add our code for how to insert data to MongoDB. npm init -y Next, let's install the mongoose package, this will be the only package we'll use for this tutorial.  npm install --save mongoose Create an index.js, we'll add our code to this file to connect to MongoDB and insert data to the Database. Connect to the MongoDB Now, the following is a sample code to connect to MongoDB.
    Node.jsMongooseMongoDB
  • How to Find Record from MongoDB with Node.js and Mongoose

    9/11/2020 -
    This blog will show a tutorial about how to find data into MongoDB by using Node.js with Mongoose. Mongoose is the Object Data Modeling library for MongoDB and Node.js. It provides functions for schema, query building, and more. If you don't use Mongoose to access MongoDB with Node.js, then you can use the MongoDB package for Node.js directly.  Get Start First, initialize a new npm package, we'll create a new package and new file, and add our code for how to insert data to MongoDB. npm init -y Next, let's install the mongoose package, this will be the only package we'll use for this tutorial.  npm install --save mongoose Create an index.js, we'll add our code to this file to connect to MongoDB and insert data to the Database. Connect to the MongoDB Now, the following is a sample code to connect to MongoDB.
    Node.jsMongooseMongoDB
  • How to Use nconf for Environment Configuration at Node.js

    3/2/2020 -
    This blog shows how to use nconf for Node.js environment configuration. Environment config is needed in any coding language, for instance, the database endpoint for each of the environments, your development, and production should be different.  Install the nconf Now, use nconf is very easy, first add to your solution's dependency package. npm install nconf --save Use the nconf You can write a helper class like following to use nconf. First, you import the package to your file, load json file, then return the nconf. const nconf = require('nconf'); nconf.file('env.json'); exports.config = nconf; This JSON file will be your App's environment configuration, you can put all your configuration dependencies to this JSON file. Later, each of your environments just updates this JSON file to match that environment's config.
    Node.js
  • How to Update MongoDB Data with Node.js and Mongoose

    8/11/2020 -
    This blog will show a tutorial about how to update data into MongoDB by using Node.js with Mongoose. Mongoose is the Object Data Modeling library for MongoDB and Node.js. It provides functions for schema, query building, and more. If you don't use Mongoose to access MongoDB with Node.js, then you can use the MongoDB package for Node.js directly.  Get Start First, initialize a new npm package, we'll create a new package and new file, and add our code for how to insert data to MongoDB. npm init -y Next, let's install the mongoose package, this will be the only package we'll use for this tutorial.  npm install --save mongoose Create an index.js, we'll add our code to this file to connect to MongoDB and insert data to the Database. Connect to the MongoDB Now, the following is a sample code to connect to MongoDB.
    Node.jsMongoDBMongoose
  • Upload to AWS S3 By Using Node.js

    1/16/2021 -
    S3 is a cloud serverless object storage solution provided by AWS. That means you can store any files to S3 without maintaining the backend machine, and how to manager these servers are AWS's responsibility. Also it is very cheap, you can reference the pricing for each region you'll be using for the S3. For example, at the moment 2020 when I check the US East Ohio, the standard s3 first 50TB/month is $0.023 per GB, it also depends on how frequently you'll use that file the price will be changed. If you just want to store some files in S3 for a long time for archive purposes, you can use the S3 Glacier Deep Archive which is $0.00099 per GB.  So, what am I doing on this blog is to show some sample code that how to upload files to AWS by Node.js. Setup IAM User with S3 permission The first thing that needs to do before writing the Node.js code is, you have to set up a user with S3 permissions to access your S3 Bucket.
    AWSS3Node.js
  • Backup AWS DynamoDB Table to Local

    12/31/2020 -
    This blog shows how to backup your AWS DynamoDB table (on the cloud) to your local DynamoDB environment. It could help in case you want to do a prototype but using production data. Export table to S3 In the first step, you need to login into AWS console's DynamoDB main page, choose the table then choose export to s3 bucket. At the moment I'm writing this, you'll need to set up the Point in time backup then you can export to S3. It says could charge, but once moved to s3 you can change it back. Download data zip file Once DynamoDB export table to s3, you should be able to find your data under {your bucket}/AWSDynamoDB/{unique guid}/data, download the zip file to your OS. Following is the JSON file I download from the S3 bucket, noticed that no comma after each item object. Not sure why but you can just simply do replacement by adding a comma, after each item object.
    AWSDynamoDB
  • Move DynamoDB Table from Local to AWS Cloud

    12/31/2020 -
    This blog shows how to move DynamoDB local table and data to the DynamoDB Web Service, unlike SQL Database, you can use the backup file to restore to a different environment. So far at this moment, I'm writing, have not found out any other way to move Dynamo local to AWS Web service. So following sample code will just loop each item and use aws-sdk to put the request to the AWS DynamoDB web service. DynamoDB table schema Following is the sample table schema, you can manually add the table on AWS Dynamo cloud or use SDK to create a table programmatically.
    AWSDynamoDB
  • How to Setting up DynamoDB Locally

    12/13/2020 -
    AWS DynamoDB is a document database that provides single-digit millisecond performance, it is a serverless database, which means you can focus on use applications to access the DynamoDB and AWS will manage the server for you. It's also available in multiple AWS regions and has built-in Cache DAX.  Another good reason to use DynamoDB is the free tier provided by DynamoDB. up to 25 GB storage, 25 write capacity units, and 25 read capacity units are free. Compare to MongoDB, depend on the MongoDB cloud provider it might be 500MB storage if you try to look for a free tier.  Now, in this blog I'll show how to set up DynamoDB locally, also show a few simple codes to access local DynamoDB. Download DynamoDB Go to this link from AWS to download DynamoDB, the different region has different DynamoDB file, so choose the region you'll be using for DynamoDB. After unzipping the file, run the following command.
    AWSDynamoDB
  • Create DynamoDB Table Locally

    12/31/2020 -
    AWS DynamoDB is one of the AWS services for the NoSQL database on the cloud. You can create an AWS account then go to the AWS console's DynamoDB section to create a table and add items. On the SQL database, you or someone need to create a server for the SQL database, you then access the SQL database on that server by SQL query, but on the other hand, AWS will be managing the server for this NoSQL, serverless DynamoDB database. You can access it by the HTTP request. What about the local environment!? On the SQL side, you can set up the SQL database on your local, how about the DynamoDB? You can reference this blog for how to setup Dynamodb in your local environment. This blog will show how to create a DynamoDB table in your local environment. The following example code was using Node.js running on Mac OS. npm version is 6.12.0, node version is v12.13.0.
    AWSDynamoDB
  • How to Increase AWS EBS Volume Size

    12/12/2020 -
    This quick note shows how to increase AWS EC2 Linux's EBS volume size. First, log in to AWS, and select the target EBS, update the size. The volume size will update right away, but you'll do the following. Next, ssh into the EC2 Linux instance, we would check the current Linux size. After ssh into the EC2, type the following command so we'll know does the increased volume had changed or not. lsblk Following is the sample result when you type lsblk. Here we'll know that you have size as 16G but current EBS only has 8G. nvme1n1 30G nvme0n1 16G |-----nvme0n1p1 8G Now, the following command will change the size to use maximum size base on the above sample result. After you run the command, your EBS should be 16G now.
    AWS
  • Build and Deploy with AWS CodePipeline

    3/1/2019 -
    Use Github repo and AWS Pipeline to deploy to AWS Beanstalk This blog will show how to use AWS CodePipeline to automate build code and deploy code at Github repo. Following are steps. Github repo with node.js code Register AWS account Create Elastic Beanstalk application running Node.js Create AWS Pipeline Config Pipeline with Github Repo Config Pipeline to deploy to Elastic Beanstalk Check-in code to Github Verify AWS Pipeline building and deploy Github repo with node.js code You can create your own node.js app, but at this blog, we'll use the node.js app I already created.   sample aws nodejs app Register AWS account make sure you have created an AWS account Create Elastic Beanstalk application running Node.
    AWS
  • How to Run Keystone.js within IIS

    8/1/2015 -
    A instruction of how to install node.js keystone at windows 7 IIS as web application.
    Node.js
  • Few Ways to Handler Environment Config at Express.js

    8/2/2014 -
    Config for your application is very important, because your testing, development and production is going to have different enviroment variable. This blog show few choice of using config at Node.js.
    Node.jsExpress.js
  • How to Handler 500 Error at Express.js

    6/15/2014 -
    How to hanlder 500 error on Express.js If you don't handler error correctly, you site will down. This blog show little tips that how to do error handler on express.js.
    Node.jsExpress.js
  • How to Use Forever in Linux for Node.js

    6/1/2014 -
    Forever is a npm package, it is for your node.js server side application. Look this package document. forever npm package.
    LinuxNode.js
  • How to Get Start with Node.js

    6/1/2014 -
    How to Create Simple Http Server using javascript Node.js This blog is for people want to get start to learn Node.js, to build a simple HTTP Server.
    Node.js
  • List of Useful Links about Ghost Blog Platform

    8/1/2015
    Node.js
  • How to Use Grunt with Keystone.js for Minify CSS, Javascript and HTML

    2/2/2016 -
    How to Use Grunt to setup task at Keystone.
    GruntJavaScriptKeystone.jsNode.js
  • Gulp ASP.NET MVC 4.5.2 Template and Browserify

    4/2/2016 -
    How to Use Gulp ast ASP.NET MVC 4.5.2 Template Using Gulp - Microsoft Setting up Gulp and Bower for an Asp.Net MVC project in Visual Studio 2013 How to use Gulp in Visual Studio Advanced AngularJS structure with Gulp, Node and Browserify Using Grunt/Gulp for Bundling and Minification in ASP.NET Migrating From ASP.
    gulpASP.NETASP.NET MVCNode.jsAngular.js
  • How to Create VPC with Public and Private Subnet

    2/12/2020 -
    This blog shows how to create VPC in scratch Create VPC Create 2 Subnets one for public Subnet and another for a private Subnet Create Internet Gateway Create a Route Table Create 2 EC2 Instances one public instance and another one is a private instance Setup NAT Gateway for private EC2 instance Create a VPC Go to VPC and click create VPC, start to enter information to create VPC. Enter any name for the name field IPv4 CIDR, enter IPv4 range as 10.0.0.0/16 Choose Amazon provided IPv6 CIDR block Tenancy, choose Default if wish to use as Tenancy after creating VPC, AWS will generate following AWS default services.
    EC2AWSVPC
  • How to Deploy Node.js App to the AWS Elastic Beanstalk

    1/1/2019 -
    How to upload Node.js App to Elastic Beanstalk Following shows how to deploy a Node.js app to AWS Elastic Beanstalk. Create Amazon AWS account To register to Amazon AWS is free, so the first is you have to do is create a AWS account, and up to a year you can use AWS as free trial. AWS free trial is not unlimit, so be aware of not creating too many Instance of Elastic Beanstalk. Create New Application at Elastic Beanstalk After you AWS account, go to Elastic Beanstalk and create New application. At the Select environment tire, Choose Web server environment.  At the base configuration, choose platform as node.js. Upload Node.js application to Elastic Beanstalk You can create your own node.
    AWSElastic BeanstalkNode.js
  • How to do S3 Cross Region Replication

    1/21/2020 -
    This blog shows how to using s3 replication within your current AWS account. Before start doing s3 cross-region or same region replication, make sure the target s3 bucket is ready. If you don't have a bucket, create a new bucket as following. You can use s3 replication for many purposes. for example, you can replicate s3 on the different regions with a different storage classes. Make sure S3 versions are enabled because s3 replication needs s3 versioning. create S3 bucket For the demo purpose, I had created a s3 bucket contains one file as following.
    AWSS3
  • Few Free Node.js Web Application for Web Developers

    7/3/2015 -
    Few List of web application framework build on top of node.
    Node.js
  • Provision AWS EC2 Instance

    1/23/2020 -
    Steps to provision EC2 Instance This blog shows how to create EC2 instance. Go to Compute and click EC2 Click Launch instance at EC2 Choose Amazon Linux 2 AMI Choose Free Tier, t2.micro Choose Configure Instance Details Launch with default VPC Enable termination protection Tenancy, use shared for now Enable hibernation as an additional stop behavior At add storage, use default root volume check delete on termination, when deleting EC2 this root device will also be deleted make it encryption during the create the EC2 instance Add tags Add tags so each to differentiate Configure Security Group assume just need SSH so SSH, TCP, Port is 22, 0.0.0.
    EC2AWS
  • How to Run Node.js as Background by Using Forever

    5/1/2014 -
    This is for running at windows, I'm able to make it start but can't stop. Still looking for the solution. However, quick solution is, deploy your node.js web application to linux, seems like forever works. If you use windows for your deployment, how about try IIS-node. When get start using node.js, you'll notice when you stop the node.js command, your HTTP server is done. You might close the command by your perpose, or after a long time, the machine auto closed command. At this kind of case, your node.js Http Server will not run automatically. So, In this blog, I'll show how to use forever.
    Node.js
  • SSH to EC2 Instance from Mac OS

    1/23/2020 -
    This blog shows how to connect to AWS Linux or Ubuntu from Mac OS First, make sure you have the EC2 Instance and have the following 2 things. have the private key pair available in the Mac OS. (I.E. should be something looks like *.pem) note the AWS EC2 instance public IP address At mac open your terminal window and go to the location has *.pem file type command as following chmod 400 {yourem.pem} Should be looks like this chmod 400 my-test.pem Following is for connecting to Linux ssh ec2-user@{EC2 Public IP address} -i {YourPem.pem} Should be looks like this ssh ec2-user@123.123.123.123 -i my-test.pem Following is for connecting to Ubuntu ssh ubuntu@{EC2 Public IP address} -i {YourPem.pem} ssh ubuntu@123.123.123.123 -i my-test.
    AWSEC2
  • SSH to EC2 Instance via Chrome Extension Secure Shell

    1/19/2020 -
    This blog shows how to ssh to EC2 Instance via Chrome Extension Secure Shell. First, you need to download this chrome extension, Secure Shell App.
    AWSEC2
  • SSH to EC2 Instance via EC2 Instance Connect

    1/18/2020 -
      This blog shows how to use AWS Instance Connect to SSH to AWS EC2 Instance. Unlike use Mac or Windows, you have to download private keys or use Putty to SSH to the EC2 Instance, this is a much more easy way to connect to EC2 instance by just click the button on AWS.
    AWSEC2
  • Start Use Gulp and Browserify to Build Angular App with Node.js

    4/2/2016 -
    Use Gulp, Gulp Plugins and Browserify to build Angular app This sample app use following technologies. Node.js Angular.js Browserify Gulp gulp-connect gulp-ng-annotate The files structure will be following, also you can check the sample code at Github. After you download the code, run following command should be able to start your app. The fisrt command will install all the node.js dependecy modules, and second command will run the gulp task defined at gulpfile.js npm install -d gulp App folder are all the client side file for build angular app. Gulpfile contains all the client side task build. Index.html is the html page will be request by the client, also contains the angular app.
    Angular.jsgulpBrowserifyNode.jsJavaScript
  • Use VPC Flow Logs

    3/11/2020 -
    Create Flow logs Select the VPC to want to use flow logs, click action then click Create flow log. Setup Destination log group If you choose to send to CloudWatch logs, you'll have to set up a destination log group. Go to CloudWatch and choose Log groups. Set up IAM role for flow logs Click set up permission on the create VPC flow logs page, this UI will only show on old UI, which will create the following policy to enable flow logs to read and write to cloud watch.
    AWSVPC
  • Create AWS Classic Load Balancer

    3/4/2020 -
    This blog shows how to use AWS classic Load Balancer from scratch, first we need to do some preparation. At the end of the setup, you'll set up 2 EC2 instances with the public subnet. Following are a list of preparation before setup the classic load balancer.
    AWS
  • How to Use Different Environment Config with Node.js

    5/4/2014 -
    Depend on running enviroment, use different configuration files. At node.js world, following module is one of the choice. Everything is on following link. https://www.npmjs.org/package/node-env-file   1. Basically, what need to be have is, you need to install node-env-file module.  npm install node-env-file --saveThis command will update package.json and install  node-env-file module. 2. Create your enviroment file, like .env. The name could be any name. .
    Node.js
  • Code Snippet - How to Access Query String at Node.js

    5/3/2014 -
    If you want to get the query string like following  http://localhost:9000/api/myapi?id=1 at your node.js code, you can write this to get the id's value at the function you defined for you api. var url = require('url'); var url_parts = url.parse(req.url, true); console.info(url.parts.querystring.
    Node.js
  • How to Create AWS Organization - For Consolidated Billing

    2/11/2020 -
    If you just have 1 AWS account, you could just use that account for billing and development. However, if you have multiple AWS accounts, it is hard to manage each account's billing, so AWS has a way that is using AWS Organizations to consolidate billing. Assume that you have the following different AWS accounts. AWS Account - Use for Development AWS Account - Use for QA AWS Account - Use for Production For consolidated billing, we'll set up AWS Organization as following. AWS Account - Use as Root Account, and billing only AWS Account - Use for Development AWS Account - Use for QA AWS Account - Use for Production Go to the root account, or create a new AWS account and use as root account for billing.
    AWS
  • How to Set Up Billing Alarm in AWS

    1/14/2020 -
    You'll want to set up billing alarm with AWS, when you want to get notified when the amount goes to a certain limit. The following example is for when you want to get an email from AWS SNS when amount over 5 dollars. First, let's go to the page to get started. Go to Cloud Watch Click Billing Click Create Alarm button Will land on Specify metric and condition page as following Enter the condition and account, the following example is I'd like to get alert when the amount is more than $5, and click Next Once enter the amount, we'll need to create a topic and email. Enter the Email where you want to get notified when AWS amount over $5.
    AWS
  • How to Use npm live-server

    3/4/2016 -
    How to use npm's live-server NPM live-server is very cool when you want to setup server to serve files under development, such as server as web server for your HTML/Javascript/CSS files. To use it you'll need to have npm installed first.At my development machine, I'm using windows 7 and node.js version is v6.5.0, npm version is 3.10.3.So after install node.js, type following command to install npm package live-server to your local environment. npm install -g live-server Above command will install npm module live-server global at your machine, once you install you can use it at any directory folder at your pc by typing following command. live-server Now, after you typed the command, if browser show your folder then you're good.
    npmNode.js
  • How to Install Node.js Ghost Blog Platform

    6/3/2015 -
    Shows how to install Ghost node.
    Node.js
  • How to Setup MongoDB Text Search with Node.js

    3/20/2016 -
    How to use MongoDB text search MongoDB provide text search function since 2.4, this blog will show how to use mongodb text search. All the example at following is run based on MongoDB version, 3.0.5. Also, I'm using Robomongo (0.8.5) to run all the MongoDB command. I also have code snippet about how to use Mongoose with text search, but I recommend at least use 2.6, seems like 2.4 with Mongoose has some problem. Stop Words, Stemming in MongoDB text search Before jump into how to use MongoDB text search, we need to understand how MongoDB do stop words and stemming. Stop in MongoDB is, let's say you have "I like apple", stop wold will be apple. Stemming is like "cook cooking cooks", so MongoDB text engine will index cook. I like apple, also I enjoy cooking.
    MongoDBMongooseNode.js
  • Code Snippet - Return Json Response for Express.js

    7/6/2014
    Node.js
  • Use AWS Elastic IP Address

    4/9/2020 -
    This blog will show how to use AWS elastic IP to assign to EC Instance but before that... Why do you need to use an elastic IP address? Assume you have the following EC2 had set up, you use your EC2 as a web server and the public IP address is as follows. Now, if you stop your instance and start again. The EC2 instance public IP address changed! So this could an issue if you need to know this server's IP address for processing something else. You could use EC2 instance metadata to log the IP address somewhere, like using Lambda, or you could use elastic IP address I will show later. Following is how you use AWS elastic IP address.
    AWSEC2
  • How to Use MongoDB TextSearch by Mongoose

    8/3/2014
    MongooseMongoDBNode.jsC#
  • How to Retrieve EC2 Instance Meta Information

    4/1/2020 -
    SSH into EC2 instance To retrieve EC2 instance meta information, once SSH into EC2 instance type following command. run with root privileges sudo su list all the metadata curl http://169.254.169.254/latest/meta-data Get EC2's hostname curl http://169.254.169.254/latest/meta-data/local-hostname Get EC2's user data curl http://169.254.169.
    EC2AWS
  • How to Setup AWS Application Load Balancer

    2/4/2020 -
    This blog will show how to create an AWS application load balancer with custom VPC's EC2 instances. Setup Custom VPC Create VPC Go to VPC and click create VPC, enter the VPC field as below example. Name tag: enter your VPC name IPv4 CIDR block: enter your CIDR block IP range IPv6 CIDR block: choose IPv6 Network Border Group Tenancy: Default (you can choose if you want to single-tenant, dedicated hardware or not) Create Subnet We'll need 2 subnets to create the Application Load Balancer. Name tag: enter any name VPC: choose the VPC just created Availability Zone: choose the availability zone IPv4 CIDR block: 172.0.1.
    AWSVPC
  • Code Snippet - How to Handler Redirect within Node.js

    5/3/2014 -
    at node.js server side, you want to redirect to another url after you success get response from one api. you can try use request module.
    Node.js
  • How to Run Ghost Blog Platform at IIS

    8/1/2015 -
    This is about how to setup Ghost to run at IIS Web Server.
    Node.js
  • Blocking Traffic from Specific IP Address with AWS Network ACL

    3/2/2020 -
    This blog shows few ways of use AWS Network ACLs to block traffic to your site. How to blocking traffic from a Specific IP address AWS has few ways to block specific targets to access your site, for example, Network ACL or WAF. So let's assume one of the examples, you have a web site running in EC2 instance as one web server, now there's one IP address you noticed and want to block the traffic. You can use the Network ACL as following. Find the Network ACL from EC2 First, you need to find out the Network ACL from EC2 instance. You can click Subnet from EC2, then click Network ACL. Find the IP address Next, you need to have an IP address. If you want to test your own machine's IPv4 Address, you can either google that what's my IP address or go to https://whatismyipaddress.com/ to check your Public IP address.
    EC2AWSNetwork ACL
  • How to Setup Ghost as Intranet Network

    8/1/2015 -
    So following How to setup Ghost(node.js) at window server, you could setup Ghost at Production server or use as local development. This blog show how to setup as Production but use inside the company's network as Intranet. After you install all software and able to run on your local server, you need to following thing to hack the system so you can use as Intranet.   1. disable url and ip address validation check go to /core/server/config/index.js, find the line which are doing the url, hostname check and comment out thest. // Check that our url is valid //if (!validator.isURL(config.url, {protocols: ['http', 'https'], require_protocol: true})) { // errors.logError(new Error('Your site url in config.js is invalid.'), config.url, 'Please make sure this is a valid url before restarting'); // return Promise.
    Node.js
  • Share S3 Bucket Between AWS Account

    1/13/2020 -
    This blog shows how to share an s3 bucket cross different AWS account. First, you'll need to set up multiple AWS accounts by using AWS Organization. You can reference this blog to see how to Create AWS Organization. Once you have setup AWS Organization, make memo for the AWS account ID that has s3 bucket you want to share with other AWS account. You'll need it later. Go to root account's IAM, click Roles to create new role.
    AWSS3
  • How to Create a Simple Angular Contact Form at Keystone.js

    11/2/2015 -
    Angular.js with keystone.
    Node.jsAngular.jsExpress.jsJade
  • A Simple Design to Use Ghost Blog Platform with Visual Studio

    8/1/2015 -
    architecture of ghost in windows system.
    Node.js
  • Few Useful Command Line Commands for Node.js

    4/16/2016 -
    Few commands --save-dev install npm module and update package.json file. npm install --save-dev gulp-zip npm init will help you to create package.json file. npm init bower init will help you through to create bower.json file. bower init dirlist all directory under current path dir intall all the module at package.json. npm install -d Few my favorite node modules gulp-ssh use ssh, but you have to setup ssh at the server first. npm install --save-dev gulp-ssh gulp-zip use zip, module to create zip.
    Node.js
  • How to Use Ghost Blog CRM Platform

    8/1/2015
    Node.js
  • How to Keep Node.js Running at Linux Server

    8/3/2014 -
    This blog shows how to use nohup + repawn.js to keep node.js web application running. Node.js/Express.js is great for Web API’s and applications. In contrast to known enterprise technologies, Node.js is very special. It’s a single process/threaded environment. If an unhanded exception occurs, the Node.js virtual machine simply stops, leaving the application in an unresponsive state. Due to the async nature of Node.js, try/catch doesn't always work, even with domains and stuff you have a chance that the application crashes on production while you sleep. from http://java.dzone.com/articles/how-keep-nodejs-processes. This's node.js, it's different.
    Node.js
  • How to Get Start with Mongoose

    6/22/2014 -
    This article provide information for you to get start with mongoose.
    Node.js
  • How to Debug Node.js Code with Visual Studio

    2/1/2016 -
    How to debug node.js app in visual studio.
    Node.jsVisual Studio
  • Code Snippet - How to do Async Programming in Node.js

    7/6/2014 -
    A shot sample code to describe how to use npm async module waterfall process. Since node.js, mongoose is async, if want to process your logic like, update step 1 do setup 2 and more. Use async module is one way.
    Node.js
  • Stop Using Visual Studio 2013 with Node.js Project

    1/1/2016 -
    Stop using Visual Studio with Node.
    Node.jsVisual Studio
  • How to Get Start by Using Express.js

    6/8/2014 -
    Use Express.js default template with Node.js This blog will show how to use Express.js default template on your local machine. Also deploy it to the cloud to verify it working. The IDE using at this blog is Sublime Text and Cloud9 IDE.
    Node.js
  • How to Use Yeoman, Brower, Grunt, Angular.js and Node.js

    6/8/2014 -
    Get Start Yeoman, Grunt and Brower with AngularJS, NodeJS     I really like work with this fast, modern web development after try a simple html template provide by Yeoman. Run the build task with Grunt, search additional library with Brower. All that make the web development very simple and fast. In additional with client side technology AngularJS and backend-side NodeJS.
    Angular.jsNode.jsGrunt