JavaScript for Line of Business Applications
606.6K views | +4 today
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...

Popular Tags - Filter using the Funnel

Scoop.it!

Page - Express like routing on the client

Page - Express like routing on the client | JavaScript for Line of Business Applications | Scoop.it

Page is a small client-side routing library that can be used to build single page applications (SPAs). It has a simple API which is inspired by Express. It utilizes the HTML5 history API under the hood, which is what allows you to build smooth user interfaces while still having linkable URLs for different pages within the app.

No comment yet.
Scoop.it!

WTF, HTML and CSS?

WTF, HTML and CSS? | JavaScript for Line of Business Applications | Scoop.it

Reasons HTML and CSS might make you say what the fuck. A curated list of commonly frustrating HTML and CSS quandaries, miscues, and dilemmas.

No comment yet.
Scoop.it!

Replacing jQuery with Vanilla JavaScript

Replacing jQuery with Vanilla JavaScript | JavaScript for Line of Business Applications | Scoop.it

For some sites, you may be using jQuery for some basic functionality. In this article, we’ll explore the opportunity to replace jQuery in those situations with plain vanilla JavaScript. As we’ll see, it can offer some potential performance benefits and, perhaps more importantly, an opportunity to learn.

Breaking away from jQuery is also a great way to take control of how you code. If a jQuery function doesn’t do exactly what you want it to do, a good understanding of JavaScript can help you remake the function in your own image.

Moving away from jQuery will require some elbow grease but is much easier than it seems. Below we’ll see just how powerful vanilla JavaScript coupled with new HTML5 APIs are as we backwards engineer a technique I use in most of my projects.


No comment yet.
Scoop.it!

Handy.js - The Web Application Template for NodeJs

Handy.js - The Web Application Template for NodeJs | JavaScript for Line of Business Applications | Scoop.it

Handy provides all the basic functionality of a web app freeing you to focus on the features that make your app truly unique.


Out of the box user account management

  • Account registration
  • User authentication - login / logout
  • Password reset
  • Email address verification


Dead simple content management

  • Define new content types
  • Save or retrieve content from the database
  • Delete content
  • Publish or unpublish content
  • Rate content


Easy role based access control

  • Assign roles to users
  • Grant access permissions
  • Check user permissions to access resources
  • Manage permissions with a graphical UI


No comment yet.
Scoop.it!

Wrapping localStorage and other POJOs with Ember.Object

Wrapping localStorage and other POJOs with Ember.Object | JavaScript for Line of Business Applications | Scoop.it

While working in Ember.Object land, you benefit from all the binding and computed property magic EmberJS has to offer. But what to do when you have to step outside its doors?

It's actually fairly easy to wrap any JavaScript object using Ember.Object. You just have to make sure that all manipulations to the wrapped object are going through the wrapper, e.g. using object.set(attribute, value) instead of object[attribute] = value.

So, how about wrapping localStorage, so you can bind to its properties from other objects? Here's an example...

No comment yet.
Scoop.it!

Browser to browser communication with Vert.x, websockets and HTML5

Browser to browser communication with Vert.x, websockets and HTML5 | JavaScript for Line of Business Applications | Scoop.it

I've been playing around with Vert.x for a couple of weeks and I'm really starting to like the simplicity of the framework. With very little configuration you can quickly get impressive results. In this article I'm diving a bit deeper in how to set up browser to browser communication using the Vert.x eventbus by using the javascript client side API. In short I'm going to show you the following things:

  • Use Vert.x as a simple web server
  • Configure vert.x on the serverside to act as bridge for the browser eventbus implementation
  • Create a simple example that shows how to use the eventbus from javascript


I'm going to skip the explanation on how to set up Vert.x. If you want more information on that look at this article where I explain the setup I've used in this example. So let's get started with the first step.

No comment yet.
Scoop.it!

AngularJS Promises - The Definitive Guide

AngularJS Promises - The Definitive Guide | JavaScript for Line of Business Applications | Scoop.it

Promises are a core feature of AngularJS - whether you understand them or not, if you use AngularJS you've almost certainly been using them for a while.

In this post I'm going to explain what promises are, how they work, where they're used and finally how to use them effectively.

Once we've got the core understanding of promises, we'll look at some more advanced functionality - chaining and resolving promises when routing.


Contents:
* What are Promises?
* How do Promises Work?
* A Real World Example
* Promises - Success, Error, Then
* Advanced Promises - Chaining
* Advanced Promises - Routing
* The Future of Promises
* Wrapping Up

No comment yet.
Scoop.it!

Collection of AngularJS Directives

Collection of AngularJS Directives | JavaScript for Line of Business Applications | Scoop.it

A growing list of handy Directives.


Categories:

* $http
* bootstrap
* charts
* drag-n-drop
* filter
* form
* image
* layout
* map
* mobile
* scroll
* sort
* table
* touch
* upload

No comment yet.
Scoop.it!

No back-end blog solution with Node.js and Markdown

No back-end blog solution with Node.js and Markdown | JavaScript for Line of Business Applications | Scoop.it

Techy is a flat CMS based on Node.js and Markdown. I made it because I wanted to write my articles in Markdown format and avoid the time-consuming publishing workflow which I’ve been using. This post will cover a little bit about how why I created the project, how it works and how you can use it.


The idea is simple. We write Markdown files and by running the techy command in the terminal these files are converted to beautifully looking HTML pages. The final result of this article could be seen here. The home page of the blog looks like that...

No comment yet.
Scoop.it!

The JavaScript Minefield

The JavaScript Minefield | JavaScript for Line of Business Applications | Scoop.it

How is JavaScript a minefield? Well, JavaScript has all sorts of pitfalls lurking for the developer. Each pitfall is like a mine in the minefield, silently waiting for you to accidentally step on it. Just like the minefield, JavaScript’s mines are hidden in plain sight. Entire books have been written about all the mines present in JavaScript. Maybe I’ll get into what some of those are in future blog posts. Now, if you are going to venture into a minefield, you need a way to avoid stepping on a mine. You need either a safe path through the minefield or a detailed map of all the mine locations.

Douglas Crockford was trying to provide a safe path through the JavaScript minefield when he wrote JavaScript: The Good Parts. He did an admirable job at laying out a subset of the language that was sufficient but avoided many of the mines. However, the problem with any safe path through a minefield is that if you ever stray from the path, it doesn’t help at all.


This article is Part 1 in a 6-Part Series.

No comment yet.
Scoop.it!

React.js in pure JavaScript - Deep explanation for newbies

React.js in pure JavaScript - Deep explanation for newbies | JavaScript for Line of Business Applications | Scoop.it

As you might now react.js is a framework to create user interfaces in a web context. What is special about this? Is amazingly fast! (and supports server-side rendering) But has a downside, which requires you to change the way you think about web interfaces (see above).

There are a lot of tutorials about react.js but almost none, or very hard to find, in pure JavaScript. They all use the react.js special syntax. But I don't want to have another javascript pre-processor between each code change so this is the main reason.

No comment yet.
Scoop.it!

Server-rendered React components in Rails

Server-rendered React components in Rails | JavaScript for Line of Business Applications | Scoop.it

If you render a React component with the same data, it will always return the same result. It makes absolutely no difference whether you do that rendering on the client or the server.

That brings us to the official front end buzzword of 2014: Isomorphic JavaScript.

The Holy Grail. The united UI layer. Serve up real HTML on first page load, then kick off a client side JS app. All without duplicating a single line of UI code.

React makes this really easy if your back end is Node.js:

No comment yet.
Scoop.it!

React js Tutorial: Now is Your Time to Try It, Right in Your Browser

React js Tutorial: Now is Your Time to Try It, Right in Your Browser | JavaScript for Line of Business Applications | Scoop.it

In this tutorial about React I want to teach you some of the best practices of using  it in real world applications. If you didn’t heard about React, then you can learn more about it on their site. Anyway without opening the link, React is “A JavaScript library for building user interfaces”.
React is not opinionated about the style of your application and just does one thing, user interfaces, and does good.

In order to be easy for you to follow the tutorial, I will use the jsfiddle online code editor.

No comment yet.
Scoop.it!

EmberUI - A component library for crafting ambitious interfaces.

EmberUI was designed to make building complex web applications simple. Web applications share a common set of components that are needed over and over again. It used to be that you would stitch together a variety of jQuery plugins of dubious quality to make your application function, but that does not lead to great experiences. There needs to be a better way.

EmberUI tries to to be this library—a uniform set of components that can be depended on to be of very high quality and flexible in their design. Each component's feature set is carefully considered and a ton of attention is paid to the design to make it both usable and "fun".

Because of our design-first approach EmberUI is going to be opinionated. There are some common design decisions that we no longer consider good design that will not make their way into EmberUI. For example, optgroups for selects or text inputs for date selectors.

No comment yet.
Scoop.it!

How does dependency detection work in Knockout.js?

How does dependency detection work in Knockout.js? | JavaScript for Line of Business Applications | Scoop.it

I received a question over email asking about how Knockout’s dependency detection actually works and thought that I would share an answer in this post. I know that I feel a bit uncomfortable whenever a library that I am using does something that I don’t fully understand, so I hope that I can help ensure that this part of Knockout is not misunderstood or considered “magic”.

Knockout has a middle-man object that is signalled on all reads to computed/observables and tells the current computed being evaluated that it might want to hook up a subscription to this dependency.

No comment yet.
Scoop.it!

Don't Forget to Cover Your Client Side!

Don't Forget to Cover Your Client Side! | JavaScript for Line of Business Applications | Scoop.it

By making sure that your application is tested, you are able to reduce the amount of bugs you find in your code, increase the maintainability of your application, and design well structured code. 

Client side unit testing presents different challenges than server side testing. When dealing with client side code, you will find yourself struggling to separate application logic from DOM logic, as well as just structuring JavaScript code in general. Fortunately there are a lot of great client side testing libraries out there to help test your code, create metrics about the test coverage, as well as analyze the complexity of it.

No comment yet.
Scoop.it!

Synth - Node.js web framework designed to make (Angular|Ember|Backbone) JS apps easy to create and manage

Synth - Node.js web framework designed to make (Angular|Ember|Backbone) JS  apps easy to create and manage | JavaScript for Line of Business Applications | Scoop.it

One big source of confusion when writing web apps powered by Node.js is the fact that both the front-end code (i.e. runs in the browser) and the back-end (i.e. runs on the server) are JavaScript. It gets even more confusing when both have controllers, models, views, etc.

Synth makes this easier by having any JavaScript, images, html, or other assets that are sent to the browser in the root folder frontand code that runs on the server is in the back folder.

Jan Hesse's insight:

Introducing Synth - A new Node.js web framework designed just for AngularJS:

https://www.youtube.com/watch?v=MSH9yB9y4ZA


https://github.com/JonAbrams/synth

No comment yet.
Scoop.it!

Introducing Atomify - A New Standard of Modularity

Introducing Atomify - A New Standard of Modularity | JavaScript for Line of Business Applications | Scoop.it

Everyone wants to write modular code, but it's not always easy. In the world of front end web development things like stylesheets, markup, and assets are some of the most easily identifiable obstacles to writing truly modular code. Add to that monolithic libraries like jQuery, Angular, etc. and it can be tempting to throw your hands up and simply dump all the code for an application into a single place.

Atomify makes overcoming these obstacles easy, and this post will begin to show you how.


So what, exactly, does it do?

  • Enables you to build properly atomic front end components
  • Brings a dependency graph to your CSS, removing the need for impossibly long and disorganized stylesheets
  • Unifies the bundling of your code, templates and styles into one easily configurable tool
  • Makes full modularity the default, instead of a complicated pipe dream
No comment yet.
Scoop.it!

Generators in Node.js: Common Misconceptions and Three Good Use Cases

Generators in Node.js: Common Misconceptions and Three Good Use Cases | JavaScript for Line of Business Applications | Scoop.it

Generators have been all the rage lately. Many Node developers (including myself!) are excited and intrigued about writing their asynchronous code like this:

var a = yield doAsyncFn()
var b = yield doAyncFnThatDependsOnA(a)
console.log(b)


However, this is just one use case (although a clever one) of using generators.

In this article, we will explore the strengths of using generators. 


Now that I can suspend functions, I can run all this stuff in parallel right? No. JavaScript is still single-threaded, but now we have the ability to say STOP in the middle of a function.

If you are looking to bolster raw performance, generators may not be your ticket. Here’s a sample CPU intensive task, calculating a Fibonacci sequence number:

No comment yet.
Scoop.it!

JavaScript Prototypes, Scopes, and Performance: What You Need to Know

JavaScript Prototypes, Scopes, and Performance: What You Need to Know | JavaScript for Line of Business Applications | Scoop.it
This article details the way that property and variable lookups are performed in JavaScript and the resulting performance ramifications to be aware of.
No comment yet.
Scoop.it!

Getting gulpy - Advanced tips for using gulp.js

Getting gulpy - Advanced tips for using gulp.js | JavaScript for Line of Business Applications | Scoop.it

After getting excited about gulp.js, at some point you need more than the shiny but basic examples. This post discusses some common pitfalls when using gulp.js, plugins and streams in a more advanced and custom way.

No comment yet.
Scoop.it!

The Absolute Beginner's Guide to Node.js

The Absolute Beginner's Guide to Node.js | JavaScript for Line of Business Applications | Scoop.it
In this simple step-by-step guide you will learn how to install node.js and how to build your first application with it. Read more!
No comment yet.
Scoop.it!

What's the difference between React and Ractive?

What's the difference between React and Ractive? | JavaScript for Line of Business Applications | Scoop.it

The most striking similarity was the use of a virtual DOM. Like Ractive, React had discovered that creating an abstract representation of the DOM allows for lightning-fast operations by minimising the amount of DOM manipulation (the bottleneck in most webapps) that needs to take place. It also facilitates server-side rendering without some of the crazy hacks users of other tools have had to employ.

Another was the focus on reactive programming. This is one of those phrases that threatens to become meaningless with overuse, but it's a useful concept. Put simply, in a reactive system where the value of bdepends on the value of a, if a changes then b will also change. Applied to user interfaces, that means that when your application state changes, your view also changes. With traditional MVC libraries you typically have to implement all your render logic manually and wire it up with a web of publish/subscribe events; with React and Ractive you're spared that (tedious, error-prone, hard-to-optimise) step when building your apps.

Finally, both libraries believe that the way to help developers build complex apps is to give them tools that encourage simplicity and composability and then get out of their way.

Having said all that, there are also some stark differences.

No comment yet.
Scoop.it!

Using Firebase with ReactJS

Using Firebase with ReactJS | JavaScript for Line of Business Applications | Scoop.it

ReactJS is a JavaScript library built by Facebook and Instagram which makes it easy to build large, complex user interfaces. It is intended to be used in combination with another framework which provides the backend. While Angular, Ember, and Backbone are popular choices for that, Firebase provides the easiest and quickest integration of a persistent, realtime backend into a React app - and it takes only a few lines of JavaScript.

Firebase is a natural complement to React as it provides React apps with a persistent, realtime backend. The first thing we need to do is add Firebase to the project...

No comment yet.
Scoop.it!

React js: learn the basics the right way, knowledge after real world project experience

React js: learn the basics the right way, knowledge after real world project experience | JavaScript for Line of Business Applications | Scoop.it

As you might have seen my older posts about React js you might also know that I've been used too manystate. After building 2 medium sized apps and reading the whole React js documentation I've came to new practices. I strongly recommend to minimize the state of any React js application as it will help a lot when you will need to make server side rendering.

In this post I will briefly make a basic tutorial about how to properly use React js because is better than my older post. It will also introduce you to write React js applications that are server side renderable and of course, Google indexable.

No comment yet.