DreamFactory Blog

The Authenticated App With AngularJS + DreamFactory User Management Part Two

Posted by Michael Mandato on Tue, Apr 15, 2014

When we last left off our application had a few routes, corresponding controllers, and templates. All we learned how to do was wire up the DreamFactory User Management module to the app and respond to its events. Not exactly earth shattering stuff. But that's all about to change in this tutorial. We're going to go over some strategies to deal with data, capture and use data from the module, and protect routes in our app.

Read More

Topics: DreamFactory Services Platform, Build an application, DreamFactory, DSP, Authentication

The Authenticated App With AngularJS + DreamFactory User Management

Posted by Michael Mandato on Wed, Apr 9, 2014

This is part one of a three part tutorial. In this tutorial we will setup an AngularJS application on our local machine, install the DreamFactory AngularJS User Management Module, and connect to a DSP that lives on the DreamFactory Hosted System. Then we'll show you how to implement Authentication using the DreamFactory User Management Module. All the files for this tutorial can be downloaded from here. Let's get started!

Read More

Topics: DreamFactory Services Platform, Build an application, Front end developers, HTML5, DreamFactory, Mobile application security, DSP, Authorization, Authentication

Tutorial: Angular + REST Made Simple

Posted by Ben Busse on Tue, Mar 18, 2014

BenBusse In this tutorial, we’ll show how to set up a simple AngularJS application that uses the angular-dreamfactory module. We wrote the angular-dreamfactory module to make it extremely simple to call REST services in your DSP from your Angular application. This tutorial explains how to get a simple trivia application up and running and showcases user registration, login, logout, reading and writing database records, and calling a third-party API.

Let’s get started!

Read More

It's Time to Redefine "Backend as a Service"

Posted by Bill Appleton on Sat, Mar 15, 2014

bill-appleton-author-mobile-archYou may have heard the acronym BaaS, or "Backend as a Service." The basic idea is quite important: a REST API on the server side can provide database communication and hosting services for application developers. This reduces server side coding and enables smaller teams to build better applications with faster development schedules. There is a derivative acronym called mBaaS, or "Mobile Backend as a Service." Mobile devices definitely need RESTful services, so this is a more specialized version of BaaS. Unfortunately, in both cases, these terms have become associated with other ideas that make this simple value proposition hard to understand. As the mobile paradigm shift plays out we are either going to need to redefine these acronyms or drop them altogether.

What Does BaaS Have To Do With NoSQL?

The main proponents of the term BaaS were probably Kinvey, Parse, and Stackmob. Famously, Kinvey created an infographic of the "BaaS Landscape" and drew themselves in the middle of the diagram. These companies were often popular with consumer video game developers that needed somewhere to store high scores and a simple way to handle OAuth. They provided basic CRUD services for data, and in each case used a NoSQL database for storage, perhaps MongoDB or CouchDB. This made sense because their customers didn't have a legacy database or the need for structured data.

But in the world of enterprise software the vast majority of data is stored in SQL. For example, corporate information about accounts, contacts, and opportunities could be useful for a mobile application. The links between these objects are important. Contacts might be associated with a particular account, and opportunities might be associated with a particular contact. Companies need an easy way to connect Active Directory roles through a REST API to existing SQL roles and data. All things considered, SQL support is more important than NoSQL for mobile application development.


Read More

Preventing Cloud Vendor Lock-in

Posted by Bill Appleton on Mon, Mar 3, 2014

bill-appleton-author-mobile-archDevelopers love cloud services. A well constructed REST API makes integration and application development easy. There are a bunch of great REST APIs out there. There are public web services like S3, BigTable, and DynamoDB available from Google, Amazon, and Azure. There are also API marketplaces from companies like Mashable that publish services for enterprise applications. Many other services are constructed "in house" for data access or other purposes.

And REST APIs are becoming incredibly important for application development. Mobile devices like phones and tablets must use REST APIs for collaborative activities and database access. The new generation of wearable devices and the Internet of Things also depends on REST APIs. Developers use REST for server to server or desktop to server communication as well. It's just a matter of time until legacy HTML websites are rebuilt with the same REST API that all these other devices are already using.

But all of these services have different characteristics. Some use XML, some use JSON. Some use SOAP, some use REST. Some use HTTP headers, others use URL parameters. An HTTP service might require GET, PUT, POST, or DELETE. Each service has unique user authentication and security requirements. Some important assets like SQL databases don't have a REST interface at all, developers have to build one. Others like NoSQL databases might have an interface but can't be called from a client due to security constraints. Unfortunately developers have to figure out how to navigate this API jungle.


Read More

Why Doesn't Your Private Cloud Have Any Cloud Services?

Posted by Bill Appleton on Tue, Feb 25, 2014

bill-appleton-author-mobile-archAdopting a private cloud strategy provides some amazing capabilities for the modern enterprise. A company can turn a conventional data center into a private cloud with virtual services for compute, storage, database, and network. Companies with products in this area include VMware, Rackspace, Dell, HP, IBM, and Red Hat. Cloud orchestration software gives an enterprise the ability to combine automated tasks and provision a network, storage array, firewalls, hypervisor, operating system, database and application with the click of a button. Popular orchestration systems are available from VMware, OpenStack and CloudStack.
Read More

SQL and REST - Working with Related Data

Posted by Lee Hicks on Wed, Feb 12, 2014

As a follow up to our other blog posts on adding a REST API to your SQL database and retrieving related data from that REST API, I wanted to describe, in more detail, the power of the "related records" feature of our SQL DB Service of the REST API.

Read More

Introducing the DreamFactory Mobile Application

Posted by Bill Appleton on Wed, Feb 5, 2014


We are excited to announce the availability of the DreamFactory Mobile Application (DMA) for iOS, Android, and Windows 8. The DMA allows JavaScript developers to write a single application on the DreamFactory Services Platform (DSP) and then quickly deploy their work to end users on any mobile device. The DSP is an open source platform that provides all of the backend services you need for sophisticated data driven or collaborative applications. And now, with the DMA, enterprise developers can securely deliver these applications to any group users, customers, partners, or employees.

Read More

Using OAuth with the New Portal Service (Part 2)

Posted by Jerry Ablan on Tue, Jan 14, 2014

Are we there yet?

This post picks up where part 1 left off... I apologize for the delay. My original post was too long so I split it into two parts. In reviewing the second installment, I realized that the concepts were a bit vague and would be better conveyed through an actual application.

Thus, the Portal Sandbox was born! The full source code is available on GitHub. Go ahead and clone a copy so you can follow along. I'll wait...

Read More

Topics: Remote service, API, Authorization, Authentication, OAuth

Add a REST API to any SQL DB in Minutes

Posted by Todd Appleton on Wed, Jan 8, 2014

ToddAppletonHave you got SQL data that you need to access from your mobile apps? If so, DreamFactory provides an easy and secure way to add a REST API to any SQL database. With the open-source DreamFactory Services Platform (DSP) all you have to do is create a service for your database, then use our built-in REST API to access that service. Each DSP comes with its own MySQL database that's accessable via the 'db' and 'schema' services. In this blog post we'll build on that and show how to add additional services to your DSP to access any remote SQL database. Then we'll show some simple examples of how to use the REST API to manage your remote SQL schema and data. This will get you started with basic CRUD operations. For information and examples of how to deal with related data see here.

If you're a screencast kind of person, we have a screencast on this topic here.

Read More