kernicPanel
Follow
22.1K views | +6 today
kernicPanel
JavaScript, Node Js, Git, Vim, and more…
Curated by Nicolas Clerc
Your new post is loading...
Your new post is loading...
Rescooped by Nicolas Clerc from Nodejs-code
Scoop.it!

Test-Driven Node.js Development with Grunt - Mark Dalgleish

One of the great things about working in a Node.js environment is that it encourages you to break your work down into discrete modules. Separating …

Via nodejs-code
more...
No comment yet.
Rescooped by Nicolas Clerc from nodeJS and Web APIs
Scoop.it!

Websockets load-balancing with HAProxy

Websockets load-balancing with HAProxy | kernicPanel | Scoop.it
HTTP protocol is connection-less and only the client can request information from a server. In any case, a server can contact a client… HTTP is purely half-duplex. Furthermore, a server can answer only one time to a client request.

Some websites or web applications require the server to update client from time to time. There were a few ways to do so:
- the client request the server at a regular interval to check if there is a new information available
- the client send a request to the server and the server answers as soon as he has an information to provide to the client (also known as long time polling)

But those methods have many drawbacks due to HTTP limitation.
So a new protocol has been designed: websockets, which allows a 2 ways communication (full duplex) between a client and a server, over a single TCP connection. Furthermore, websockets re-use the HTTP connection it was initialized on, which means it uses the standard TCP port.
Via Nicolas Weil, Srdjan Strbanovic
more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

semver your services with seaport :: The Universe of Discord

semver your services with seaport :: The Universe of Discord | kernicPanel | Scoop.it

Pushing out incremental changes to a service-oriented cluster can be tricky, especially when changes span multiple services. Introducing seaport, a service registry written in node.js based on semvers.

With seaport, services are brought up with a name@version string and other processes can connect to services that match a name@semver pattern.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

NodeCellar: Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB

In my previous post, I shared my recent experience building a RESTful API with Node.js, MongoDB, and Express.


In this post, I’m sharing the client application that uses that RESTful API. The Node Cellar application allows you to manage (retrieve, create, update, delete) the wines in a wine cellar database.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Node.JS SSL Certificate Chain

I’ve just discovered that one of our servers is not serving up it’s SSL certificate chain correctly. This is fine for modern web browsers who trust the COMODO certificate, but for older browsers/operating systems you need to support higher up the trust chain.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Simple logstash implmentation in nodejs : file log collection, sent with zeromq

Simple logstash implmentation in nodejs : file log collection, sent with zeromq | kernicPanel | Scoop.it

node-logstash is a tool to collect logs on servers. It allow to send its to a central server and to elastic search for indexing.

In top of elastic search, you can use a specialized interface like kibana to dive into your logs.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

ShellJS - Unix shell commands for Node.js

ShellJS is a portable (Windows included) implementation of Unix shell commands on top of the Node.js API. You can use it to eliminate your shell script's dependency on Unix while still keeping its familiar and powerful commands. You can also install it globally so you can run it from outside Node projects - say goodbye to those gnarly Bash scripts!

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Ranu's Blog: RedisStore and rooms with Socket.IO

Here is my base code I used at my startup PeopleRooms, using RedisStore instead of MemoryStore in Socket.IO. So that the application is capable to scale. And the also the "rooms" feature of Socket.io

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

stream-handbook

How to write node programs with streams

This document covers the basics of how to write node.js programs with streams.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Punch Reloaded | LakTEK

Punch started out as a simple static site generator, which I wrote to use in my own work. After releasing to the public, it attracted bunch of passionate early adopters, who provided some valuable feedback on how to improve it. Their feedback gave me a better perspective of what people really expect from a modern-day web publishing tool.

So in last July, I took two weeks off from my day job, to create the initial prototype for a new Punch. Then for the next two months, I spent most of my early mornings and late nights turning this concept into a reality.

Today, I present you Punch Reloaded, which I deem as a modern web publishing framework.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Test-Driven Node.js Development with Grunt - Mark Dalgleish

One of the great things about working in a Node.js environment is that it encourages you to break your work down into discrete modules. Separating your work into smaller files is a good first step, but publishing to npm is so simple that creating small modules for others to share is a great way to give back to the community.

When writing small modules that adhere to the Unix philosophy of small programs doing one thing well, writing in a test-driven manner is almost a no brainer. However, getting a new Node project up and running can be a tedious process, particularly if you’re new to Node.

Luckily, Ben Alman has created Grunt, a project which is fast becoming the build tool of choice for the JavaScript community.

more...
No comment yet.
Rescooped by Nicolas Clerc from javascript node.js
Scoop.it!

How To Analyze Twitter Data From Node.js Applications in 15 Minutes | Architects Zone

How To Analyze Twitter Data From Node.js Applications in 15 Minutes | Architects Zone | kernicPanel | Scoop.it
Node.js is a popular server-side implementation of JavaScript. Its lightweight, event-based concurrency model lends itself naturally to building a real-time...
Via Mikael Bourges-Sevenier
more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

multi-server continuous deployment with fleet

multi-server continuous deployment with fleet | kernicPanel | Scoop.it

Writing applications as a sequence of tiny services that all talk to each other over the network has many upsides, but it can be annoyingly tedious to get all the subsystems up and running.

 

Running a seaport can help with getting all the services to talk to each other, but running the processes is another matter, especially when you have new code to push into production.

 

fleet aims to make it really easy for anyone on your team to push new code from git to an armada of servers and manage all the processes in your stack.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Password Authentication with Mongoose (Part 2): Account Locking

This post is Part 2 (of 2) on implementing secure username/password authentication for your Mongoose User models. In Part 1 we implemented one-way password encryption and verification using bcrypt. Here in Part 2 we'll discuss how to prevent brute-force attacks by enforcing a maximum number of failed login attempts.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

sshfs-node - mount filesystem through ssh

This module helps to mount filesystem through ssh thanks sshfs. It only works with public and private keys, not with password.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Introducing Gith - GitHub WebHooks For Node - Bocoup

GitHub offers a great feature called WebHook URLs. You can add a url to take advantage of git’s post-receive hook and get a POST request containing data related to a repository push (e.g., commits, tags, and head-resets). While the data is very detailed and thorough, its complexity and focus on mimicking the git operations make it harder to use. For example, files added are listed per commit instead of a complete array spanning all commits. Also, retreiving if a tag was added requires checking three different properties.

 

When using GitHub payloads to determine your own server behavior, different payload data from GitHub may require different actions to be taken. For example, you wouldn’t need to pull from your master branch and update a website’s content if someone pushed a new branch. But you might want to stage that branch somewhere, which would be a completely different operation.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

DailyJS: Mastering Node Streams: Part 1

Streams are one of the most underused data types in Node. If you’re deep into Node, you’ve probably heard this before. But seeing several new modules pop up that are not taking advantage of streams or using them to their full potential, I feel the need to reiterate it.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Les domaines dans Node.JS, à quoi ça sert ? « naholyr.fr

Les domaines sont l’une des grandes nouveautés de Node.JS 0.8.

J’étais un peu circonspect quand je les ai vus arriver, ayant un peu de mal à comprendre le cas pratique auquel ils répondaient. Puis je suis tombé sur un cas dans la vraie vie Je vais vous le partager en version simplifiée, et on va voir comment le corriger à l’aide des domaines.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

package.json cheatsheet

This is an interactive guide for exploring various important properties of the package.json packaging format for node.js applications.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Single page apps in depth (new free book)

This free book is the book I would have wanted when I started working with single page apps. It's not an API reference on a particular framework, rather, the focus is on discussing patterns, implementation choices and decent practices.

I'm taking a "code and concepts" approach to the topic - the best way to learn how to use something is to understand how it is implemented. My ambition here is to decompose the problem of writing a web app, take a fresh look at it and hopefully make better decisions the next time you make one.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Nunjucks is a full featured templating engine for javascript.

Nunjucks is a full featured templating engine for javascript. | kernicPanel | Scoop.it
It is a direct port of the Python-powered jinja2 templating engine and aims to be feature-complete with jinja2. It supports server and client-side rendering. View on github.

It was born out of frustration with other javascript templating engines. The most popular ones either are ugly and don't abstract enough (EJS) or have too different of a syntax (Jade). The only other project like this is jinjs, which has been abandoned.

more...
No comment yet.
Scooped by Nicolas Clerc
Scoop.it!

Deployd

Deployd is a platform that makes building complex backends simple. Build APIs for web and mobile apps in minutes instead of days. Unlike working with a traditional backend, there's no boilerplate, or configuration. Deployd works right out of the box. The best part is that you can run it however and wherever you want - it's free and open source.

more...
No comment yet.