JavaScript for Line of Business Applications
596.1K views | +0 today
Follow
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

Current selected tag: 'DurandalJS'. Clear
Scoop.it!

Building a Treeview in Aurelia

Building a Treeview in Aurelia | JavaScript for Line of Business Applications | Scoop.it

There seems to be a community forming behind Aurelia, so I figured I'd give it a try and build something of manageable complexity. I landed on a treeview component since it requires me to touch upon several of the different binding types in addition to recursive templates. The treeview supports recursive rendering of a few U.S. states with cities and boroughs. There is also support for expand/collapse of nodes with children.

Aurelia is a modern framework, with support for ES6 out of the box, which requires some setup to get transpiling and the rest of the development environment up and running. In order to simplify the process I recommend downloading the provided skeleton project and use it as a baseline. Aurelia is still a new framework, but the documentation on their website is already impressive and answered most of my questions.

No comment yet.
Scoop.it!

Single Page Application with Durandal - Configuration and Setup

Single Page Application with Durandal - Configuration and Setup | JavaScript for Line of Business Applications | Scoop.it

In this post we will have a look at what's included with the starter kit and changing some setup and configuration stuff.

No comment yet.
Scoop.it!

Building a Single Page Web App with Grails and DurandalJS

With the increasing prevalence of JavaScript and JSON you can pretty much find a lot of framework choices out there that covers both points even if you are a front-end developer primarily knowing only JavaScript. As for me, my roots are in Java server-side development. I do write JS for front-end development but I am not as comfortable to structure and write JS to develop server-side code. If you're like me, then what's the solution?

What're we making? In honor of TodoMVC we are going to build a Todo app which enables us to post a list of things to do. Just simple enough to give a taste of what these frameworks we're choosing are capable of.

Jan Hesse's insight:

http://blog.everyday.web.id/building-a-single-page-web-app-with-grails-and-durandaljs-part-2/

No comment yet.
Scoop.it!

Durandal: Quick Start

Durandal: Quick Start | JavaScript for Line of Business Applications | Scoop.it

Durandal is a lightweight JavaScript framework designed to make building Single Page Applications (SPAs) simple and elegant. It has strong support for MVC, MVP and MVVM so that no matter what type of front end architecture you prefer, Durandal can handle the task.

With RequireJS as its base and a thin layer of conventions, Durandal can provide amazing productivity while helping you to maintain SOLID coding practices. Pair that with out-of-the-box support for rich UI composition, modal dialogs, eventing/messaging, widgets, transitions, routing and more....and there's no doubt you'll be able to build whatever apps you can imagine.

No comment yet.
Scoop.it!

Making Durandal applications SEO crawlable

Making Durandal applications SEO crawlable | JavaScript for Line of Business Applications | Scoop.it

The web is changing. JavaScript frameworks like Durandal are rising and more and more applications are created this way, offering excellent user experiences. But, is the web ready for this movement? Let's just say that it's a "work in progress".

There are a lot of things we have to be aware of when developing a dynamic JavaScript application and one of the most important things is SEO. When we develop a Durandal application and make it available to the world, one of the first things we would like to see is the application being indexed by google. But without any configuration, the only thing we will see indexed is the root page of our site. What's the problem? I created one of my best web applications, the users love it, it's quick and optimized...but nobody can enjoy it because google can't see it.

What googlebot can see is our index page and nothing more, and the reason is because our content is generated dynamically and the web hasn't traditionally worked this way. We may think "times are changing" and Google should be aware about this...and of course it is. But to take advantage of it we have to make some changes in our application first.

No comment yet.
Scoop.it!

Hands On Lab: Building a Multiple View Single Page Application (SPA)

Hands On Lab: Building a Multiple View Single Page Application (SPA) | JavaScript for Line of Business Applications | Scoop.it

In this hands-on lab you will learn how to build a simple multiple view Single Page Application (SPA).

You will start by building a simple html page and add jQuery, RequireJS to make it dynamic. Then you will add Durandal and Knockout to extend the single html page into a SPA that has a shell and two additional views and a navigation menu to navigate between the two.

 

 this hands-on lab, you will learn:

How to use RequireJS to bootstrap a javascript module for your html pageHow to configure and use Durandal to provide your javascript application a lifecycle.How to add multiple views, configure the routes and navigation to turn your single html page into a multiple view SPA.
No comment yet.
Scoop.it!

Durandal’s Edge

Durandal’s Edge | JavaScript for Line of Business Applications | Scoop.it

With so many SPA-style frameworks emerging in the last couple years, you may wonder what makes Durandal unique or different. Why would you want to choose it for your next project?  I’d like to share a few key points to that end…

Rather than re-invent the wheel, Durandal starts by combining and building on top of three existing libraries. Each of these libraries is very mature, has a large, active community and was strategically chosen because it meets one specific need very well. First we start with jQuery. In some ways you can think of it as a better DOM or the “missing JavaScript core library”. Next, we add in RequireJS, which gives us rich, declarative JavaScript modules. Finally, Knockout provides us with powerful two-way data-binding.

With these three libraries as a foundation, Durandal constructs a thin integration layer and transforms them into a powerful SPA framework. In addition to strategically connecting these libraries, Durandal adds new functionality. Some things Durandal adds are:  a client-side router, rich view composition, screen state management, pub/sub, simple conventions, modals/message boxes and more…

No comment yet.
Scoop.it!

Durandal vs. Framework “X”

Sometimes I am contacted by consultants or businesses regarding Durandal as it compares to other frameworks. And sometimes the questions that are asked take the form of “So and so says Durandal isn’t as good as Framework X because of Y. Is this true?” Frequently the people making the original statements aren’t basing them on correct information. Other times, they ignore the imperfections in their “framework of choice.” Below is a list I was asked to address recently for a customer who was very happy with Durandal, but who was receiving some pressures from a 3rd party who wanted them to switch to Angular.

No comment yet.
Scoop.it!

Building a Dynamic Application Menu with Durandal.js, Knockout, and Bootstrap

Building a Dynamic Application Menu with Durandal.js, Knockout, and Bootstrap | JavaScript for Line of Business Applications | Scoop.it

I’m going to do a longer series here about how to create a dynamic menu bar system with Durandal, Knockout, and Twitter Bootstrap.  This menu bar is going to emulate the traditional desktop application menu bar you find in apps (like the File, Edit, or View menus, for example).  The special thing here is that it will be 100% dynamic.  This will allow interesting scenarios such as dynamically altering the application menu when the application is in a different mode or allow something like plug-ins to alter the menu structure adding new commands.

Jan Hesse's insight:

The other parts are:

http://www.timlabonne.com/2013/07/building-a-dynamic-application-menu-with-durandal-js-knockout-and-bootstrap-pt-1/

http://www.timlabonne.com/2013/07/building-a-dynamic-application-menu-with-durandal-js-knockout-and-bootstrap-pt-2/

http://www.timlabonne.com/2013/07/building-a-dynamic-application-menu-with-durandal-js-knockout-and-bootstrap-pt-3/

http://www.timlabonne.com/2013/07/improving-on-kolite/

No comment yet.
Scoop.it!

Announcing Durandal 2.0 and Weyland 1.0

Announcing Durandal 2.0 and Weyland 1.0 | JavaScript for Line of Business Applications | Scoop.it
It is with great pleasure that I release to you today Durandal 2.0 . This release represents a significant advancement in the framework's core capabilities and ease of use. With a modular architecture, a new router, greater consistency in design,...
No comment yet.
Scoop.it!

Knockout Validation with Durandal JS Single Page Application Framework

I have seen issues people have been having with knockout validation and integrating it into a Durandal SPA scenario.

This video assumes you know some basics about Durandal and javascript structure (e.g. revealing module pattern).

No comment yet.
Scoop.it!

Using Durandal to Create Single Page Apps

Using Durandal to Create Single Page Apps | JavaScript for Line of Business Applications | Scoop.it

Durandal stitches together Knockout, Sammy, and RequireJS to make it easier to use these technologies together.

In this blog entry, I want to provide a brief walkthrough of using Durandal to create a simple Single Page App. I am going to demonstrate how you can create a simple Movies App which contains (virtual) pages for viewing a list of movies, adding new movies, and viewing movie details. The goal of this blog entry is to give you a sense of what it is like to build apps with Durandal.

No comment yet.
Scoop.it!

Create your Own Single Page App from Scratch

In this video, I show how to take KnockoutJS, SammyJS, and RequireJS and put them together into a framework for single page applications. Note however, the purpose of this video is to show just how difficult and tedious this is, and why frameworks like DurandalJS and AngularJS should be used instead.

No comment yet.
Scoop.it!

Aurelia's Adaptive Binding

Aurelia's Adaptive Binding | JavaScript for Line of Business Applications | Scoop.it

Aurelia employs several strategies when observing object properties. The best strategy is chosen depending on the features of the browser and the type of object/property being observed. Here's a run-down of the techniques used, in order of priority.

No comment yet.
Scoop.it!

Creating Single Page Application using Hot Towel Template

Creating Single Page Application using Hot Towel Template | JavaScript for Line of Business Applications | Scoop.it

Single-Page Applications (SPAs) are Rich, Responsive Web apps that load a single HTML page and dynamically update that page as the user interacts with the app.

This code sample gives the demo application for creating Single Page Application using Hot Towel SPA Template (Knockout, Durandal, Breeze).

This application will be useful for understanding the basics of Single Page Application in some extend. If you follow and create the application your own, it will give great experience on SPA. 


This code sample describes step by step creation of My Contact project using MVC 4 - Hot Towel Single Page Application Template.

I am explaining the step by step creation of My Contact project using MVC 4 Hot Towel SPA and I have written inline comment in the source code for better understanding the code. In this web page I am concentrating on steps for creating this application. 

No comment yet.
Scoop.it!

Durandal.js with ASP.NET 4.5.1

The posts that follow this will document the steps in achieving that:

* creating a new ASP.NET SPA,
* stripping out the default SPA,
* implementing Durandal,
* integrating the new authentication features into Durandal,
* handling roles based authorization,
* creating the SideWaffle template

Jan Hesse's insight:

Blog series on bringing together Durandal with ASP.Net

No comment yet.
Scoop.it!

Test-driven SPA development

Testing is hard to get right. There are several ways to shoot yourself in the foot. Testing an SPA (single page application) adds its own idiosyncrasies and complexities. Utilizing well known patterns and practices and avoiding common pitfalls, it is possible to create a fast, maintainable test-driven development process.

This post explains theory behind how to write good unit tests and delves into writing a real world test case with code and full working examples. It uses Durandaljs, but the concepts are applicable to all single page applications.

No comment yet.
Scoop.it!

Testing Durandal apps made easy

Testing Durandal apps made easy | JavaScript for Line of Business Applications | Scoop.it

Hi there,

The today’s post is targeted to a very dedicated audience, so let’s see if the following is for you.

* You belong to the growing number of Durandal developer?

* You have a need to make your apps better?

* You don’t know yet how to test a Durandal app?

If you answered one or multiple of these questions with a yes, read on.

Hey, even you answered the last two questions with a no read on to see if Grunt can make your life easier. When you haven’t heard of Grunt yet, head over to smashingmagazine for a nice Grunt intro.

No comment yet.
Scoop.it!

Unit Testing with DurandalJS

Unit Testing with DurandalJS | JavaScript for Line of Business Applications | Scoop.it

urandal provides the Durandal Test Framework for unit testing. This test framework uses PhantomJS and Jasmine.

As shipped with Durandal, it's focused on testing Durandal's own internal components. But it can easily be adapted for your own unit testing needs.

In your own work, you're probably not going to want to use the entire Durandal project -- you may start with a starter kit such as the HTML Starter Kit, or even with your own custom setup. The first challenge is that the Starter Kits don't include the Test Framework. Beyond that, since the Test Framework is configured out-of-the-box for Durandal's internal testing needs, its hardcoded paths don't work for the directory hierarchies you'll have as a developer.

But configuring the Test Framework for your own needs is very easy.

No comment yet.
Scoop.it!

Deploying your Durandal 2.0 SPA to production

Durandal 2.0 has some breaking changes from its earlier version.  If you are converting from 1.x to 2.0, read this documentation first.  I haven’t converted my project that is currently in production (nepris.com) into 2.0 yet. I wanted to figure out 2.0 first before I jump into that change. So, for a different smaller application, I started with Durandal 2.0. I used Durandal Starter Kit with Visual Studio 2012 to get the base template up. While developing locally, everything ran pretty well, but ran into some issues with building it for production. Here are some notes… 

No comment yet.
Scoop.it!

AngularJS vs. DurandalJS

AngularJS vs. DurandalJS | JavaScript for Line of Business Applications | Scoop.it

Here’s the deal, I like DurandalJS. Though, I’m not going to lie, I really like AngularJS as well. These two technologies compete in many respects as they both seem to tackle the same problem. What problems are these frameworks trying to tackle? I have made a diagram of what I see to be the core developments in client side technologies, and after you view this, I will talk about where I see Angular and Durandal fitting in (note that there are a myriad of other useful frameworks that do storage, pub/sub eventing, animation, data-binding, AMD pattern ala requireJS, and a slew of other things, but this represents what I believe is the focus on today’s client-side development).

Jan Hesse's insight:

http://ryankeeter.com/angularjs-vs.-durandaljs-part-2-on-n-%E2%80%93-data-binding

http://www.ryankeeter.com/angularjs-vs.-durandaljs%E2%80%93part-3-of-n%E2%80%93reputation

No comment yet.
Scoop.it!

FluentKnockoutHelper - generate Knockout syntax with strongly typed, fluent, lambda expressions for ASP.NET MVC

FluentKnockoutHelper - generate Knockout syntax with strongly typed, fluent, lambda expressions for ASP.NET MVC | JavaScript for Line of Business Applications | Scoop.it

* Painlessly generate Knockout syntax with strongly typed, fluent, lambda expression helpers similar to ASP.NET MVC
* Rich intellisense and compiler support for syntax generation
* Fluent syntax makes it a breeze to create custom helpers or extend whats built in
* OSS alternative to ASP.NET MVC helpers: feel free to add optional features that everyone in the community can use and I'll merge your pull in ASAP!
* Painlessly provides validation based on .NET types and DataAnnotations in a few lines of code for all current/future application types and changes
* Client side JavaScript object factory (based on C# types) to create new items in for example, a list, with zero headaches or server traffic

 

Durandal.js is a new framework that uses Knockout, jQuery, Require and Sammy that makes it very easy to create single page applications. It 'just works' with Knockout and feels very clean so I have created the Survey App using it. Also take note other than for the start page and WebAPI MVC isn't used at all for views. This seems pretty natural so far but time will tell as it is built out.

Take a look at Survey App demo to see a full demo using Durandal.js

No comment yet.
Scoop.it!

Get Angular, Durandal, and JavaScript Templates with SideWaffle

Get Angular, Durandal, and JavaScript Templates with SideWaffle | JavaScript for Line of Business Applications | Scoop.it

Hungry for some file templates to get you started in the morning? Well now you can fill up on a set of web template packs for Visual Studio 2012 and 2013. SideWaffle is an open source project that creates a Visual Studio extension containing a set of file templates you can use for web projects.
SideWaffle currently has several templates including 10 I contributed for Angular, Durandal, and creating a JavaScript IIFE. One of the best parts is that SideWaffle will be frequently updated with new and useful templates (they do check for high quality templates). I expect that in the near term we’ll see a lot of additions.
* Angular Controller (using Controller As syntax)
* Angular Controller (using $scope)
* Angular Directive (creates a skeleton for a directive)
* Angular Factory (great for data, logging, and other services)
* Angular Module (sets up a module)
* Durandal ViewModel
* Durandal Service
* Durandal main.js (common creation syntax for kicking off Durandal)
* JavaScript IIFE (Basic IIFE using vanilla.js)
I use the Angular templates in my upcoming course at Pluralsight on using Angular and Breeze to build a powerful SPA.

No comment yet.
Scoop.it!

Compare Durandal to Angular, Not Knockout to Angular

Compare Durandal to Angular, Not Knockout to Angular | JavaScript for Line of Business Applications | Scoop.it

Odds are you have been asked recently: “How does KnockoutJS compare to AngularJS?” There seems to be a lot of attempts to compare these two awesome libraries. We can certainly compare them, but will this really get you where you want to go?

If you hear this question, ask “why” the person is asking it. If s/he wants a JavaScript/HTML based presentation framework then suggest that you compare Durandal to Angular. Why? Because Knockout is at heart a data-binding library, while Angular and Durandal are presentation frameworks. This is a hugely important concept to grasp, so let’s break down what’s at the heart of these questions and how Knockout, Durandal and Angular approach them. But let’s be clear: Knockout rocks. Durandal rocks. Angular rocks.

No comment yet.
Scoop.it!

Building a real-time SPA using KnockoutJS, CodeFirst and XSockets.NET

Building a real-time SPA using KnockoutJS, CodeFirst and XSockets.NET | JavaScript for Line of Business Applications | Scoop.it

Building Single Page Applications aka. SPA is something that has become more popular this days. We can find a series of astute client-side JavaScript libraries helping us out to solve the most common tasks. KnockoutJS, AngularJS, DurandalJS and BreezJS are frameworks that we would recommend you to take a closer look into.

All of those frameworks delivers a wide range of functionality to solve time consuming issues such as dependency tracking, binding and associating DOM elements to objects and templating.

In this blogpost we show you how you can publish, subscribe updates via a simple RealtimeMVC controller using XSockets.NET. The controller has a dependency to a simple domain model and EntityFramework.

No comment yet.