background preloader

Node.js

Facebook Twitter

A Better Way to Learn AngularJS. Note: Looking to learn Angular 2? Take the "A Better Way to Learn Angular 2" tutorial Congratulations on taking the plunge! This AngularJS course is built with the intent of exposing you to the best available resources on each Angular topic. Our desire is to present these topics richly, and from a variety of vantage points, in order to afford you a more complete perspective on them. The learning curve of AngularJS can be described as a hockey stick. Getting started with apps featuring basic functionality is delightfully easy. However, building more complex apps often require understanding Angular's inner workings. With AngularJS, the "Ready, Fire, Aim" learning methodology of duct taping together a handful of tutorials and a cursory glance through the documentation will lead to confusion and frustration.

Prerequisites Resources Since AngularJS is still in its infancy relative to other JavaScript frameworks, the number of encyclopaedic resources on it is still insufficient. Binding Services. New to AngularJS 1.x? Start learning here. - Learn Angular 1.x. AngularJS 1.x provides a lot of utility. What does this mean? Well, it means that there is a lot of things for you to learn. Luckily there is a shed load of great resources for you to get started, including lessons here on egghead! Step One The very first step to conquering AngularJS is getting it "installed" or added to your project. With that behind us, we'll start to take a look at some of the core functionality that Angular provides.

The Basics Two-way binding is a fundamental feature of AngularJS. Basic Binding in AngularJS Binding is a core feature of AngularJS. Watch this lesson now You'll quickly want to get your javascript out of your markup, and into controllers. Controllers Controllers are the 'glue' of an AngularJS application. Watch this lesson now Once you've started using controllers, you will need to get them talking to one another. Controllers allow you to define properties and methods that your views can utilize. Defining a Method on the Scope Watch this lesson now Filtering Data. Isaacs/node-supervisor. AngularJS — Superheroic JavaScript MVW Framework. Meteor.js - A web framework for everyone | MeteorHacks. First of all, I want to mention that no solution works everywhere.

That doesn’t change with Meteor even. It is, though, a general purpose web framework built for everyone, regardless of whether you are an absolute beginner or a super duper ninja. Meteor for absolute beginners You might have no prior experience in web development, but if you want to building an app based on your other expertise, like in mathematics or chemistry, then Meteor is the best framework for you. You can build your app without worrying too much about the technology behind it.

Books like DiscoverMeteor will help you to jump-start the development. Alice’s Rubic app is a good example of this. Meteor for front-end developers If you are a front-end developer and struggling to build a web app with Node (or a similar framework), Meteor is the answer for you. Sacha is a success story. Another example is Marc’s RalphChat. Meteor for Node and JavaScript ninjas You can change any part of your Meteor app as you want.

Install CentOS RedHat · dreamfactorysoftware/dsp-core Wiki. Prerequisites If you are upgrading an existing installation, you may skip this section. This is only for new installations. DreamFactory requires the following packages to run successfully: curlhttpdphpphp-commonphp-cliphp-curlphp-jsonphp-mcryptphp-gdphp-mysqlphp-posixphp-pearmysql-servergit Please note that the php-mcrypt and php-json packages aren't available is some distro repositories. Configuring Your System [thedude@localhost:~]$ sudo yum install curl httpd php php-common php-cli php-curl php-json php-mcrypt php-gd php-pear php-mysql mysql-server git Set up MySQL You need to create a database, and a DreamFactory user in your MySQL instance. Ubuntu@ip-10-164-45-80:~$ mysql -u root Welcome to the MySQL monitor.

Mysql> create database dreamfactory; Query OK, 1 row affected (0.00 sec) mysql> grant all privileges on dreamfactory.* to 'dsp_user'@'localhost' identified by 'dsp_user'; Query OK, 0 rows affected (0.05 sec) mysql> quit Bye DSP Installation from Github Enable Site. How To Install Node.js on a CentOS 7 server. Introduction Node.js is a Javascript platform for server-side programming. It allows users to easily create networked applications that require backend functionality. By using Javascript as both the client and server language, development can be fast and consistent. In this guide, we will show you a few different ways of getting Node.js installed on a CentOS 7 server so that you can get started. Most users will want to use the EPEL installation instructions or the NVM installation steps.

Install Node from Source One way of acquiring Node.js is to obtain the source code and compile it yourself. To do so, you should grab the source code from the project's website. On your server, use wget and paste the link that you copied in order to download the archive file: wget Extract the archive and move into the new directory by typing: tar xzvf node-v* && cd node-v* sudo yum install gcc gcc-c++ Now, we can configure and compile the software: . v0.10.30.

DreamFactory Blog. Dreamfactorysoftware/dsp-core. Https & authentication in node.js by Jeroen Moors. Belgian node.js User Group - 11/12/2013 Jeroen Moors I'm a freelance consultant. @ 475 71 42 49 Why do we need this? What do we need? Identity Ensure Bob is the real Bob In a SSL world Privacy Encryption Ceaser shift Strong encryption using PKI Rules of the game Math glues primary and public keyPrivate key will ALWAYS be kept secretPublic key can be seen by anyone PKI in action - Public key exchange PKI in action - Encrypt and decrypt Authorization All men are equal What have we learned so far... Identity Server side: SSL Certificates Client side: ......................... Privacy SSL Certificates for encryption Authorization Certificate Initiation Install OpenSSL apt-get install openssl brew install openssl setup.exe ;) Create a private key mkdir sslcd ssl/openssl genrsa -out nodettps.dev.fluoline.net.key 2048 Create a Certificate Signing Request (CSR) Certificate Signing Get the certificate signed by a known CA Choose a CA and certificate type Compare certificates.

Getting Cirrius: Securing Node.js and Express with SSL Client-Authentication. In the course of my work using Node.js, I did some research on implementing securing Node.js. There are a couple of decent articles on the subject, and of course a number of frameworks that performed this work, but nothing I read or evaluated really quite fit my needs: Use strong authentication.In my case, I preferred certificate-based (SSL).Remain as unobtrusive as possible. I didn't want security code in my routers or generally entangled in the rest of my application.Be Flexible.Let me determine how and when users could see content or perform actions. I know it's sacrilege to say it, but I really was looking for a capability similar to Spring Security or J2EE container security. I wanted to constrain access by route, apply arbitrary access rules, and utilize ACL's which could be used to restrict content, or constrain access to data when queries are performed against external data sources.

In this post, I will demonstrate how to setup SSL authentication in Node.js. Pretty awesome, huh? Choosing your Node.js Authentication Strategy. Node is blowing up! I’ve been working and playing with Node since 2010 and in that time I’ve seen it go from a tiny community of people hacking side projects to a full-fledged and legit movement of modern developers building very real, very important, and very large applications.

A whole ecosystem of solutions has sprung up to help Node developers, and that ecosystem is rapidly evolving. But it’s increasingly hard to figure out what solutions are best for you because of all the noise in a Google search or in npm. Authentication and user management in particular is a difficult and shifting landscape. And yet, when building a real application in Node, it is one of the first components you need to figure out. What is available in Node? Node today has several different paths to build user management. Passport.js / EveryauthYour Own Database and a Hashing AlgorithmUser Management as a Service Passport.js / Everyauth Serialization of the authenticated userManaging the sessionLogging the user out.

Underscore.js. Sails.js. Build a Complete MVC Website With ExpressJS. In this article we'll be building a complete website with a front-facing client side, as well as a control panel for managing the site's content. As you may guess, the final working version of the application contains a lot of different files. I wrote this tutorial step by step, following the development process, but I didn't include every single file, as that would make this a very long and boring read. However, the source code is available on GitHub and I strongly recommend that you take a look. Express is one of the best frameworks for Node. It has great support and a bunch of helpful features. There are a lot of great articles out there, which cover all of the basics.

I assume that you are familiar with Nodejs, have it installed on your system, and that you have probably built some applications with it already. At the heart of Express is Connect. Middleware is basically a function which accepts request and response objects and a next function. There are two ways to setup Express. A chatroom for all! Part 1 - Introduction to Node.js - Canadian Developer Connection. This node.js tutorial series will help you build a node.js powered real-time chatroom web app fully deployed in the cloud. You are expected to know HTML5 and JavaScript. Throughout the series, you will learn how to setup node.js on your Windows machine, how to develop a web frontend with express, how to deploy a node express apps to Azure, how to use socketio to add a real-time layer and how to deploy it all together. Level: Beginner to Intermediate. Part 1 - Introduction to Node.js Part 2 - Welcome to Express with Node.js and Azure Part 3 - Building a Backend with Node, Mongo and Socket.IO Part 4 – Building a Chatroom UI with Bootstrap Part 5 - Connecting the Chatroom with WebSockets Part 6 – The Finale and Debugging Remote Node Apps Part 1 - Introduction to Node.js Welcome to Part 1 of the Node.js Tutorial Series: A chatroom for all!

What is node? Node.js is a runtime environment and library for running JavaScript applications outside the browser. Why use node? Setting up node.js on Windows 8. Node.js.