Node.js

Showing 32 posts.

Few useful command line commands for node.js

Posted in Node.js, gulp, bower by dake

Read more...

Start Use Gulp, Browserify to build angular app on node.js

Posted in Angular.js, gulp, Browserify, Node.js, JavaScript by dake

Read more...

Gulp ASP.NET MVC 4.5.2 Template and Browserify

Posted in gulp, ASP.NET, ASP.NET MVC, Node.js, Angular.js by dake

Read more...

Grunt with Keystone.js

Posted in Grunt, JavaScript, Keystone.js, Node.js by dake

How to Use Grunt to setup task at Keystone.js for minify CSS, Javascript, HTML

Read more...

node.js tools for Visual Studio Debug

Posted in Node.js, Visual Studio by dake

How to debug node.js app in visual studio.

Read more...

Simple Angular Form at Keystone.js

Posted in Node.js, Angular.js, Express.js, Jade by dake

Angular.js with keystone.js

Read more...

Deploy keystone.js (node cms) at IIS

Posted in Node.js by dake

A instruction of how to install node.js keystone at windows 7 IIS as web application.

Read more...

ghost development with visual studio

Posted in Node.js, Ghost by dake

Read more...

Setup Ghost to Intranet Network

Posted in Node.js by dake

Read more...

Design Ghost blog platform

Posted in Node.js by dake

architecture of ghost in windows system.

Read more...

Ghost list of issues and how to resolved

Posted in Node.js by dake

List of issue and how to resolve for Ghost.

Read more...

Run Ghost(nodejs) at IIS

Posted in Node.js by dake

This is about how to setup Ghost to run at IIS Web Server.

Read more...

Ghost(node.js) blog platform links

Posted in Node.js by dake

List of links and tips for Ghost

Read more...

How to use Ghost(node.js) Platform

Posted in Node.js by dake

how to install Ghost

Read more...

Node.js Web Application

Posted in Node.js by dake

Few List of web application framework build on top of node.js

Read more...

Install Node.js Ghost Platform

Posted in Node.js by dake

Shows how to install Ghost node.js platform

Read more...

Use MongoDB textSearch by Mongoose

Posted in Mongoose, MongoDB, Node.js, C# by dake

How to use MongoDB text search

Read more...

Keep NodeJs running at Linux

Posted in Node.js, Linux by dake

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.

 

Read more...

Enviroment Config at Express.js

Posted in Node.js, Express.js by dake

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.

 

 

Read more...

Sample Code - Async in Node.js

Posted in Node.js, Express.js by dake

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.

Read more...

Sample Code - Express.js API Json result

Posted in Sample Code, Node.js by dake

A Sample Code Snippet for create api return json object

Read more...

SyntaxError: Unexpected token D body-parser at node.js

Posted in Express.js, Node.js by dake

Looks like most of time this is just json at the request body is not in a correct json format.

Node.js JavaScript Web Application with IDE Visual Studio

Posted in Node.js, Express.js, Visual Studio by dake

    My goal is trying to find a Free and great Code Editor and I'm still not find the one I love. There're so many great IDE out there, but I don't want to pay. (If I make enough money, sure I would pay.) The longest source code editor I have used is Visual Studio, I have used it from 2003 until now. Visual Studio is the best IDE for building .NET relative application and Microsoft is good to make these kind of tools. Visual Studio is very powerful for server-side Development.

Read more...

Error Handler(500) for Express, Node.js

Posted in Node.js, Express.js by dake

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.

Read more...

Yeoman, Brower, Grunt, AngularJS and NodeJS

Posted in Node.js, Angular.js by dake

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. 

Read more...

Use Express.js default template with Node.js

Posted in Express.js, Node.js, Jade by dake

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.

Read more...

Get Start Node.js

Posted in Node.js by dake

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.

Read more...

Forever in Linux

Posted in Linux, Node.js by dake

Forever is a npm package, it is for your node.js server side application. Look this package document. forever npm package.

 

Read more...

Environment config file on node.js

Posted in Node.js by dake

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 --save

This command will update package.json and install
 node-env-file module. 

2. Create your enviroment file, like .env. The name could be any name. .env_dev, env_prod

PORT=9000
NODE_ENV=development

Read more...

Bower Install error : git

Posted in Node.js by dake

When you try to run follwoing command at first time, but get following error.

bower install 

 Failed to execute "git ls-remote --tags --heads git://github

.com/twbs/bootstrap.git", exit code of #128

 

Reference following link, to update git global config to use https instead of git://

git-bower-errors-exit-code-128-failed-connect

 

It might be become of your computer's policy setting is exclude for centern outpound port. 

Read more...

get url query string at node.js

Posted in Node.js by dake

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.id);

Read more...

Free Node.js Applications

Posted in Node.js by dake

Free Node.js Applications

 

Ghost

A blog platform.

 

KeyStone

A Blog and Image Gallery system.

 

 

Read more...