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: 'breeze.js'. Clear
Scoop.it!

10 Angular Tips from TechEd 2014

10 Angular Tips from TechEd 2014 | JavaScript for Line of Business Applications | Scoop.it

Getting started with AngularJS is smooth sailing. But once you master the basics, you begin to realize there are things you wish you knew before you started. This session shares 10 such tips that go beyond the fundamentals.

I demonstrate how I build end-to-end apps using AngularJS and BreezeJS on the ASP.NET platform. We explore how to manage multiple screens, maintain clean code with popular patterns, implement CRUD, perform robust HTML validation, and use local storage for saving work in progress.

No comment yet.
Scoop.it!

Managing Client-Side Objects Using TypeScript: It's a Breeze

Managing Client-Side Objects Using TypeScript: It's a Breeze | JavaScript for Line of Business Applications | Scoop.it
Once you've delivered server-side objects to your client, you're going to need to manage them. Here's how to integrate a powerful client-side (and server-side) object manager into your application using TypeScript.
No comment yet.
Scoop.it!

Querying ASP.NET Web API OData using Breeze JS

Querying ASP.NET Web API OData using Breeze JS | JavaScript for Line of Business Applications | Scoop.it

A few days back I blogged about the query options supported by ASP.NET Web API OData. Though we get a number of options to query data from clients through REST-based URLs, building the URLs at runtime is not an easy task. One of the very popular ways to call services from rich JavaScript applications is through jQuery AJAX. While jQuery AJAX abstracts the pain of dealing with browser and configuring parameters, it expects an absolute URL. Writing a set of fixed URLs can be easy, but in larger applications we will have a number of scenarios where we need to build most part of an OData URL based on decisions. We can’t inspect any of the URLs unless a request is sent to them. It would be good to have an abstraction that generates the queries for us. 

Breeze JS is the right library in such case. Breeze is built with OData query standards. But it is not limited to querying OData. Breeze can manage complex object graphs, cache data, query cached local objects, save complex objects to server, and perform validations and more. Breeze solves all the problems that one might face while working with data in rich JavaScript applications. In this post, we will see how Breeze simplifies querying OData services. 

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.
Scoop.it!

What Breeze can do for You

What Breeze can do for You | JavaScript for Line of Business Applications | Scoop.it

Breeze.js is a client side JavaScript library that manages rich data. Before Breeze existed, I wrote a SPA and it had 20 JavaScript files and modules for data management that total about 1550+ lines of code. I wrote all of this code to do a fraction of what Breeze does. It was painful to write and every time I added a new entity or CRUD method it got much bigger. I rewrote this logic using Breeze and ended up with 2 files (datacontext.js and model.js) and had 350+ lines of code, more functionality, and every time I add a new entity the code increases by just a few lines. That’s 1/4 the code, about 1/4 the time, and a more value. Does that interest you?

No comment yet.
Scoop.it!

Never In Doubt: The Breeze Server: "Have it your way"

Never In Doubt: The Breeze Server: "Have it your way" | JavaScript for Line of Business Applications | Scoop.it

BreezeJS is a 100% JavaScript client library. It can work with any backend that speaks HTTP.

It's hard to get that message across when most Breeze samples demonstrate a Breeze client talking to a Web API controller with Entity Framework and SQL server behind it. Understandably, some people believe that Breeze only works with Web API, EF, and a SQL database. We need more samples to show alternatives. We're working on those.

I'd like to clear up some misconceptions about BreezeJS regarding the relationship between data on the client and data on the server. Want the gist? Head straight to the Summary at the end. 

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!

Using Breeze JS to Consume ASP.NET Web API OData in an Angular JS Application

Using Breeze JS to Consume ASP.NET Web API OData in an Angular JS Application | JavaScript for Line of Business Applications | Scoop.it

As stated in previous post, Breeze required data.js for to understand OData conventions. All functions performing CRUD operations in Breeze return a Q promise. Any changes made to properties of $scope inside then method of Q are not watched automatically by Angular, as Q is a non-angular component. To make the changes visible, we need to explicitly call $scope.$apply(). To avoid this difficulty, Breeze team created an extension to convert Q to$q. Name of the extension is to$q, it can be found on GitHub. 

We don’t need jQuery anymore as Breeze detects presence of Angular and configures its AJAX adapter to use $http.

As both Angular and Breeze are JavaScript libraries, they can be easily used together. But we can’t enjoy the usage unless we follow the architectural constraints of Angular JS. The moment we include Breeze.js in an HTML page, the JS object “breeze” is available in the global scope. It can be used directly in any of the JavaScript components, Angular controllers and services are no exceptions. Best way to use an object in any Angular component is through Dependency Injection. 

No comment yet.
Scoop.it!

Zza! Single page application for ordering pizzas built on the MEAN stack with Breeze.js

Zza! Single page application for ordering pizzas built on the MEAN stack with Breeze.js | JavaScript for Line of Business Applications | Scoop.it

Zza! is a single page application for ordering pizzas, salads and drinks.

This is the 100% JavaScript version of Zza! written for Node.js running Express with a MongoDB database.

It's built on the BMEAN stack:


Breeze   client-side data modeling and data accessMongo   server-side document-oriented databaseExpress   server-side web application framework on nodeAngular   client-side presentation frameworkNode   server-side platform for web applications


Breeze works well with Microsoft technologies as we've demonstrated many times. It also works well outside the Microsoft ecosystem. To drive that point home, this sample has ...

no C#
no ASP.NET
no Web API
no IIS
no Entity Framework
no SQL Server
No comment yet.
Scoop.it!

Breeze/Angular template

Breeze/Angular template | JavaScript for Line of Business Applications | Scoop.it

AngularJS is an open source library from Google for building Single Page Applications (SPAs). It offers data binding, dependency injection, and screen management. Combine it with BreezeJS, another open source library for data modeling and data management, and you have the essential ingredients for a great HTML/JavaScript client app.

The Breeze/Angular SPA template is a variation on the KnockoutJS SPA template included in the ASP.NET and Web Tools 2012.2 Update. If you’ve got Visual Studio, you’ll have an example SPA up and running in less than 60 seconds.

No comment yet.
Scoop.it!

What Breeze can do for You

What Breeze can do for You | JavaScript for Line of Business Applications | Scoop.it
Breeze.js is a client side JavaScript library that manages rich data. Before Breeze existed, I wrote a SPA and it had 20 JavaScript files and modules for data management that total about 1550+ lines of code. I wrote all of this code to do a fraction of what Breeze does. It was painful to write and every time I added a new entity or CRUD method it got much bigger. I rewrote this logic using Breeze and ended up with 2 files (datacontext.js and model.js) and had 350+ lines of code, more functionality, and every time I add a new entity the code increases by just a few lines. That’s 1/4 the code, about 1/4 the time, and a more value. Does that interest you?
No comment yet.
Scoop.it!

Data Points - Pain-Free Data Access in JavaScript using breeze.js

Data Points - Pain-Free Data Access in JavaScript using breeze.js | JavaScript for Line of Business Applications | Scoop.it

With Breeze, I can make HTTP calls to my OData service or to a service defined by ASP.NET Web API (asp.net/web-api). I switched my service to ASP.NET Web API, which works against the same EF model I used previously—with one addition. My former sample exposed only Person data. I now have related data in the form of a Device class, as every developer I know has a small collection of personal devices. The relevant functions exposed by my ASP.NET Web API are a GET, which returns Person data; another GET for Device data; and a single POST for saving changes. I’m also using a Metadata function to expose the schema of my data, as shown in Figure 1. Breeze will use this Metadata in order to understand my model.

No comment yet.