{ DreamFactory: 'Blog' }

Parse Server lacks depth, DreamFactory digs much deeper

Posted by Bill Appleton

Wed, Feb 10, 2016

Parse had some initial success among native game designers. If you were writing an iOS or Android app and you weren't quite sure how to code OAuth or Push Notifications, then Parse was an easy fix for the problem. They also provided help with User Management and a place to store the information on your High Scores Screen.

Virtual Relationships Between Database Tables

Posted by Lee Hicks

Thu, Feb 4, 2016

A few years ago, we wrote a blog post about working with related data using the DreamFactory REST API platform. The SQL DB service can return a table along with any number of related tables in a single API call. You can POST the JSON document back to the API in order to create, update, or delete the related data. DreamFactory automatically maintains all of the links and junction objects for you. This is possible because we use the schema information stored in the database to learn about the various relationships between the tables.

But what if you have tables that are related in some way, and those relationships are not detailed in the schema? What if the related tables exist on different databases, or even on different servers? Previously, the only solution was to make multiple calls from the client-side and assemble the information as needed. Or you could create a custom service or write a server-side script to combine unrelated tables of data. Here is a recent blog post about how to do this.

But now, with the introduction of DreamFactory 2.0, developers can specify virtual relationships between any two tables. The tables can be located on different databases, and the databases can be located on different servers. This is a game changing capability because now a developer can create, read, update, and delete related data across multiple servers with a single REST API call!

These virtual relationships are imposed from outside by the DreamFactory platform. There is no need to change the actual configuration of your database. What's more, once DreamFactory knows about the virtual relationships, you can work with related data of any kind without the need for server-side scripting. This feature packs even more capability into the request URL string itself, further reducing the need to build custom REST APIs.

New DreamFactory 2.0 Tutorial Videos

Posted by Ben Busse

Wed, Jan 27, 2016

A lot of people like watching quick screencasts to get up to speed on the basics of a product. We just made a bunch of videos on DreamFactory 2.0 Admin Console that introduce the basics of the product. We've also made some new videos on how to use DreamFactory 2.0 for common use cases, including how to use the REST API for MySQL, SQLite, MongoDB, and remote web services. Stay tuned for more videos over the coming weeks, including how to add custom services, use event scripts, connect multiple databases with our new "data mesh" feature, connect to any SOAP service with REST, and more!

NoSQL DreamFactory API SQL

Wordpress integration with the DreamFactory REST API platform for user management

Posted by Jessica Rose

Thu, Jan 21, 2016

Noggle CEO Lars von Thienen has been indulging in a little island hopping lately. There aren’t many palm trees on these islands, but getting between them is a lot faster and safer now.

Benchmarking DreamFactory 2.0

Posted by Ben Busse

Mon, Jan 18, 2016

One of the main design goals for DreamFactory 2.0 was to increase speed and scalability. The entire platform was rewritten in the Laravel framework and we adopted JSON Web Tokens (JWT) for better security and completely stateless operation. This post presents some benchmarking results designed to help enterprise customers scale their DreamFactory installation to any desired level of performance. The sections below talk about vertical and horizontal scalability and then we look at the effect of increasing concurrent users.

DreamFactory Silver

Building an AngularJS application using the DreamFactory REST API backend

Posted by Andy Rai

Tue, Jan 5, 2016

Now that DreamFactory 2.0 is live on Bitnami, our team has been busy building example apps to show how easy it is to use DreamFactory as your REST API backend. I’ve been working on DreamFactory’s AngularJS sample address book app and tutorial. This blog summarizes a few important things to know about getting started with the DreamFactory Angular sample app.

AngularJS DreamFactory Silver Tutorials

Connecting data, connecting families

Posted by Joshua Curry

Wed, Dec 30, 2015

When Brazilian dev shop Serrabits was challenged to come up with an online platform to preserve and connect the histories of 4,000 families in 40 cities, they chose DreamFactory. But, this audacious project had humble beginnings.

Three years ago, the core devs worked for a group of Brazilian furniture companies, building bespoke SPA apps with AngularJS and Ruby. They experimented with a variety of tools to abstract their backend layer, but found the security lacking.

“We tested Firebase, Mongolab, CouchDB and ArrestDB, but the lack of security policies in all of them made the implementation in our private datacenter unfeasible,” laments Serrabits CIO Junior Conte.

In late 2014, they saw a presentation by DreamFactory Product Manager Ben Busse on using AngularJS with DreamFactory. They’ve been avid users ever since.

Events and Community DreamFactory Silver

Milestones and Moon Pies: The Year in Review

Posted by Joshua Curry

Tue, Dec 22, 2015

“It’s been an exciting year for DreamFactory and the thriving DreamFactory community. We released DreamFactory 2.0 and followed up with DreamFactory Enterprise. We launched new professional support plans, and we got new partnerships with Intel, Verizon, AppGyver, and more, all of which help you build and deploy your mobile, web, and IoT apps faster. We've got lots more coming in 2016, so thanks, stay tuned, and spread the word.” 

DreamFactory Silver DreamFactory Gold Silly

Gartner Gets It Right with MASP (Almost)

Posted by Bill Appleton

Tue, Dec 22, 2015

We have been a Gartner subscriber here at DreamFactory Software for quite a few years, and they provide a great service to help companies understand technology trends and customer needs. I have watched with interest as they have refined their recommendations for mobile application development in the enterprise. They started out with vertically integrated stacks and moved to loosely coupled client-server configurations thereafter. Along the way, they changed the name of the platform a few times, including a Mobile Application Development Platform (MADP), a Mobile Enterprise Application Platform (MEAP) and then finally a Mobile Application Integration Platform (MAIP). They produced quite a few different architectural diagrams as well.

REST API DreamFactory Silver DreamFactory Gold

AppGyver upgrades Composer 2 with DreamFactory to build apps from any data source

Posted by Joshua Curry

Thu, Dec 17, 2015

App development platform AppGyver now includes the DreamFactory REST API platform right out of the box. AppGyver's newest drag-and-drop app builder, Composer 2, provides a visual development tool that now empowers businesses to build apps with an instant, secure connection to existing backend data sources -- in just minutes.

REST API Mobile Apps DreamFactory Silver

DreamFactory 2.0 Support For SQLite

Posted by Bill Appleton

Wed, Dec 16, 2015

I have been blogging extensively about the highly scalable and enterprise class features in DreamFactory 2.0. We’ve benchmarked huge server installations and explored exciting new possibilities with Big Data. But now in a complete change of course, I want to talk about what may be the coolest new feature we have: DreamFactory 2.0 now supports SQLite. It may not be massively scalable, but SQLite is an extremely convenient way to create a database on the fly for development and testing. Production applications can also benefit from this nifty new feature.

REST API SQL DreamFactory Silver

Combining Multiple Data Sources In One API With DreamFactory

Posted by Ben Busse

Wed, Dec 9, 2015

DreamFactory 2.0 allows you to hook up any number of SQL or NoSQL databases, and then you instantly get a complete REST API for each one. This information can be combined in any way that you need on the client. But sometimes you might want to combine multiple data sources on the server and return the information in a single REST API call.

This is really easy to do with DreamFactory 2.0.

NoSQL SQL DreamFactory Silver

DreamFactory Enterprise: DreamFactory Management Made Easy

Posted by Bill Appleton

Tue, Dec 1, 2015

We’re thrilled to announce that DreamFactory Enterprise is officially available to the fast-growing worldwide DreamFactory community.

DreamFactory Silver DreamFactory Gold

DreamFactory Proud to Sponsor HackKings

Posted by Jessica Rose

Mon, Nov 9, 2015

Based around open source technology, the DreamFactory team has a lot of love for spaces where passionate people are building the interesting and unexpected. So being involved with hackathons seemed like an incredible way to get involved with amazing events, communities and to see what kinds of interesting things sleep-deprived technologists could build on the DreamFactory platform in 24 hours. We're going to be sponsoring our first hackathon in December, the esteemed HackKings student hackathon at King's College London on December 12-13th.

Events and Community DreamFactory Silver

DreamFactory 2.0 Bundled With MongoDB

Posted by Ben Busse

Fri, Nov 6, 2015

All of the new Bitnami packages for DreamFactory 2.0 have MongoDB built into the installation. Just run the installer, open up the admin console, and MongoDB is right there as one of the available services. This blog post discusses why we bundled MongoDB in the latest version of DreamFactory and how you can to use this great NoSQL database.

NoSQL SQL DreamFactory Silver

DreamFactory 2.0 released into the wild

Posted by Bill Appleton

Thu, Oct 29, 2015

We are thrilled to announce that DreamFactory 2.0 has been released and is available for immediate download. This second generation of DreamFactory provides major enhancements to API security, customizability, modularity, and performance.

NoSQL DreamFactory

How to connect to a MySQL database with JavaScript

Posted by Carsten Jacobsen

Tue, Oct 27, 2015

The DreamFactory REST API enables database connections using a wide variety of front end scenarios. This simple sample app demonstrates how DreamFactory 2.0 easily can be used as a backend for a JavaScript application. It's a simple address book, where contacts can be created, shown, updated, deleted and grouped, basically CRUD operations.

SQL Sample Apps JavaScript Tutorials

DreamFactory Enterprise Beta Now Available

Posted by Ben Busse

Tue, Oct 20, 2015

We’re pleased to announce that DreamFactory Enterprise beta is ready to download and evaluate in your own environment.

DreamFactory Enterprise is a new commercial software package that helps you provision, govern, and report on multiple DreamFactory instances. It also helps you run DreamFactory more efficiently on shared computing infrastructure. Simply put, it’s the easiest way to manage multiple DreamFactory instances across your development lifecycle. 

DreamFactory DreamFactory Gold

DreamFactory Active Directory authentication over LDAP

Posted by Arif Islam

Tue, Oct 13, 2015

DreamFactory 2.0 has built-in support for Active Directory authentication over LDAP. Developers can now provide the ability for their users to sign in using their enterprise/corporate login credentials. In other words, you can now easily set up an enterprise app to allow users to sign in using their corporate username and password, eliminating the need for creating and remembering yet another set username and password for their app.

AD/LDAP in DreamFactory 2.0 works just like other services in DreamFactory. It starts with provisioning an AD/LDAP service using the Services tab in the DreamFactory 2.0 admin console. While provisioning the service, simply specify your Active Directory server details such as hostname, base DN etc., as well as a default role. This role will be used for any users authenticating using your AD/LDAP service. You can easily create a role in DreamFactory 2.0 using the admin console. Here is a short how-to on setting up an AD/LDAP service with DreamFactory 2.0. We will start with setting up a role for our AD/LDAP service.

Authentication DreamFactory Silver AD/LDAP

DreamFactory at Interface Open Source / API Events

Posted by Jessica Rose

Fri, Oct 9, 2015

We are delighted to be attending two API-focused events serving the open source community. Interface is a series of Meetups developed by the Age of Peers team focused on the intersection of open source and APIs. We’ll be attending the London Interface on October 21st at Dragon Hall and Amsterdam Interface on October 23rd.

DreamFactory Events and Community

Using DreamFactory 2.0 with OAuth services

Posted by Arif Islam

Tue, Oct 6, 2015

DreamFactory 2.0 supports authentication using OAuth services. Developers can now allow end users to login with credentials from sites like Facebook, Twitter (yes, OAuth 1.0 is supported!), Google, and GitHub.

DreamFactory 2.0 makes it super easy to add OAuth services to your apps without any server-side coding or token handling. The currently supported OAuth service providers are Facebook, Twitter, Google, and GitHub. We’ll be adding more OAuth providers in the future.

Authentication OAuth

DreamFactory 2.0 Beta Now Available

Posted by Ben Busse

Fri, Sep 18, 2015

After many months of hard work, we’re announcing offical beta availability of DreamFactory 2.0. We appreciate all your feedback on DreamFactory 1.x and have integrated tons of your suggestions and ideas into the 2.0 release. We think you’ll like the many new features and performance enhancements. 

NoSQL DreamFactory OAuth Nginx Security PHP

DreamFactory and Verizon partner to provide a cloud-first development portal

Posted by Eric Rubin

Wed, Aug 12, 2015

Today,we’re pleased to announce an innovative alliance with Verizon. It’s a partnership that combines DreamFactory’s REST API platform with Verizon’s secure cloud services to deliver a turnkey cloud-first development environment tuned for mobile, web, and IoT developers. Check out the free DreamFactory-Verizon Partner Solutions portal, available now at verizon.dreamfactory.com.

Android SDK

Posted by Connor Foody

Fri, Aug 7, 2015

During my summer internship I worked on DreamFactory’s mobile SDKs. One cool thing (of many) about DreamFactory is they provide a range of client SDKs complete with great documentation and samples. My last blog post was about the work I’ve done with the DreamFactory iOS SDK. I also worked on improving the Android SDK, building a sample app, and enhancing the documentation. You can now find the the new and improved SDK on GitHub. Here are some important things to know when getting started with the Android SDK.

Sample Apps Tutorials

iOS SDK 101

Posted by Connor Foody

Thu, Aug 6, 2015

For my internship this summer, I’ve been working on DreamFactory’s iOS SDK, sample app, and documentation. I’m excited to announce that the new and improved iOS SDK, as well as more detailed documentation, is now available on GitHub. This blog summarizes some important things to know about getting started with the DreamFactory iOS SDK. 

iOS Sample Apps

Scaling DreamFactory for High-Volume Deployments

Posted by Bill Appleton

Wed, Jul 15, 2015

Here at DreamFactory, we frequently get inquires about the scalabilty and security of the DreamFactory platform. We're not surprised. There are many thousands of users running DreamFactory as a REST API backend for important real-world web, mobile, and IoT applications. To help answer the security question, I blogged about DreamFactory security a couple weeks ago. Today, I want to address questions regarding DreamFactory scalability.  

DreamFactory External File Storage Performance Nginx

How To Securely Mobilize Data Using a REST API Backend

Posted by Bill Appleton

Thu, Jul 2, 2015

We get lots of inquiries about how the DreamFactory REST API platform helps secure data access, particularly from larger enterprise and government users. It's a valid concern: a growing number of web and mobile apps need to access sensitive data, and proper controls must be implemented in the services used to access that data from an expanding number of apps.

REST API DreamFactory API Authentication Enterprise Architecture Security PHP

SOA is Not a Mobile Backend

Posted by Bill Appleton

Mon, Jun 22, 2015

The rise of mobile devices finally pushed the adoption of RESTful web services into the mainstream of application development. But years before this, companies used web services to build sophisticated service-oriented architectures for application development and integration. Some of the enterprise service bus (ESB) and API management vendors have even tried to adapt SOA systems to the brave new world of mobile devices—with limited effectiveness. I'd like to examine some of the similarities and differences between SOA and mobile backend integration platforms.

REST API DreamFactory Mobile Apps API Enterprise Applications Enterprise Architecture Tutorials

Running DreamFactory as a Docker Container

Posted by Todd Appleton

Thu, Jun 11, 2015


Note: This blog post has been updated for DreamFactory 2.x, and now shows how to use Redis for cache.

DreamFactory can be run as a Docker container, which makes it easier than ever to get the backend for your apps up and running. The DreamFactory Docker image is available on Docker Hub, or you can build your own image from the GitHub repo. Using these two methods, I'll show you how to use Docker to fire up your own DreamFactory instance in just a few steps. This setup uses MySQL for the system database and Redis for the system cache. The basic idea is that you first start the containers for MySQL and Redis, then a container for DreamFactory which links to the others. 


REST and DreamFactory in the Internet of Things: A winning combination.

Posted by Jan Liband

Wed, Jun 10, 2015

There is no shortage of talk about the Internet of Things (IoT). Regardless of how you feel about all the buzz surrounding the IoT, there’s no doubt an enormous and growing number of devices are getting connected to the Internet to enable or deliver new functionality and services.

REST API DreamFactory IoT

Why DreamFactory Embraces Open Source

Posted by Bill Appleton

Tue, Jun 2, 2015


The engineering team here at DreamFactory Software designed and built some of the very first rich applications that use web services. We learned the hard way that building apps for demanding enterprise customers can be daunting. Server-side page generation doesn’t work. Delivering a high performance experience on network-limited, performance-constrained devices is non-trivial. Managing security is especially challenging. And you have to build your own API to access the backend.

We thought: “there must be a better way!” So in 2012 we set out to perfect the design and implementation of a mobile backend platform that would meet the needs of our development team. These efforts led us to develop the DreamFactory Services Platform — a RESTful backend integration platform that allows mobile, web, and IoT developers to connect any data source and expose it with a secure, comprehensive palette of REST APIs for use by any client device.

DreamFactory Mobile Apps

.NET SDK for DreamFactory API

Posted by Todd Appleton

Tue, May 19, 2015

Hey, .NET fans! We're pleased to announce the immediate availability of a new SDK interface for connecting your .NET apps to databases or other services via the DreamFactory Services Platform (DSP). Like all of our SDKs (we also offer ones for iOS, Android, and JavaScript), this one offers user-friendly wrapper functions for commonly-used API calls. You don't have to spend days learning the details of the API - the SDK takes care of that for you. While recommended, there's no requirement to use the SDK for your .NET apps. All you need is a way to make the HTTP calls to your DSP.

The SDK is available from GitHub or it can be installed from nuget.org. The README on GitHub offers lots of details about installing or building from source code. The SDK is built with .NET 4.5 but you can easily build with .NET 4.0 if needed. It comes with a unirest-net implementation of IHttpFacade - the UnirestHttpFacade class. You can also define your own implementation to use with the DreamFactory API by providing a custom IHttpFacade.

Let's look at a few examples of how to authenticate to your DSP and make some CRUD calls to its default MySQL database. There's demo code available in the GitHub repo for all of these functions.

DreamFactory Enterprise Applications Sample Apps .NET

Why We Chose Laravel for Building DreamFactory 2.0

Posted by Lee Hicks

Thu, Apr 30, 2015

A couple of years ago, the DreamFactory engineering team took our ideas and prototypes for a RESTful services backend integration platform. We started looking for a good base framework to build on, and to determine how much we would need to write on our own. To some degree, we did a little of both, settling with a hybrid based on the Yii 1.1 framework. That served us well for getting the DreamFactory Services Platform off the ground and to its current state.


A REST API Is Not Enough for Enterprise Mobile App Integration (Part 4 of 4)

Posted by Bill Appleton

Tue, Apr 21, 2015

My first three blogs in this series discussed the perils of building your own REST API, looked at some ineffective solutions that companies use to battle backend API complexity, and surveyed the advantages of a more comprehensive and reusable API strategy. Now in Part 4, I want to consider some of the additional issues that companies will need to consider if they want to build a complete backend platform for enterprise mobile, web, and IoT applications.

REST API DreamFactory API Enterprise Applications Enterprise Architecture

Preparing for GIDS

Posted by Sathyamoorthy Sridhar

Fri, Apr 17, 2015

International trips can be a big hassle. Just think about the amount of prep you must go through before you leave: tickets, Visa, demo prep, booth prep, making sure the wife and kids are going to be comfortable, and finally, if your trip is actually heading back to your original home (like I am, to India), you need to think of what to buy for the people back home. God forbid you forgot a trinket for your grandmother! 

Events and Community

Building Reusable REST API Services (Part 3 of 4)

Posted by Bill Appleton

Wed, Apr 8, 2015

My first post in this series of four discussed the problems and pitfalls of creating your own REST APIs. After that we looked at some of the ineffective ways that companies try to deal with the API complexity problem. Now, I want to talk about the advantages of reusable web services for general-purpose application development.

REST API DreamFactory Enterprise Applications Enterprise Architecture

Band Aids Don’t Solve REST API Complexity (Part 2 of 4)

Posted by Bill Appleton

Thu, Apr 2, 2015

In my previous blog post, I examined the problem of REST API complexity in the enterprise. In short, as a company builds more and more web services, the situation server-side becomes increasingly complex, which can reduce portability, scalability, efficiency, and security. It also slows down development, just at a time when enterprises are scaling up development of mobile applications. In this blog post, I discuss some of the solutions that companies use to address this problem, and assess their effectiveness.

REST API Mobile Apps API Enterprise Applications Enterprise Architecture

Don't Build Your Own REST APIs (Part 1 of 4)

Posted by Bill Appleton

Fri, Mar 27, 2015

The engineering team at DreamFactory designed and built some of the very first applications that use web services. Over the years, we made many mistakes trying to create the perfect API backend for these applications.

In our experience working with customers, we’ve learned that many companies face the same challenges we had to think about and tackle over the years. One of the biggest challenges is figuring out a winning API strategy. This blog post lays out some of the traps and pitfalls that companies often experience when they decide to build their own REST APIs.

REST API Mobile Apps API Enterprise Applications

#PHPUK15: Innovation is alive and well within the PHP community

Posted by Ben Busse

Mon, Mar 2, 2015

DreamFactory recently participated in the excellent PHP UK Conference in London. The conference was attended by 750 developers who stayed very busy over two days of simultaneous talk tracks given by excellent speakers from all over the world. With a strong emphasis on back-end development and scripting, we were eager to engage with PHP developers and better understand how the DreamFactory Services Platform could help them leverage back-end services such as MySQL databases and other data stores. And we stayed extremely busy at our booth!

Events and Community

DreamFactory 1.9.0 Supports Amazon SNS Push Notifications

Posted by Todd Appleton

Tue, Feb 10, 2015

We're excited to announce that DreamFactory now supports push notifications using Amazon’s Simple Notification Service (SNS). Notifications can be sent to any endpoint supported by SNS. This includes mobile, email, and HTTP endpoints. 


DreamFactory 1.9.0 Has Shipped!

Posted by Todd Appleton

Thu, Feb 5, 2015

Hi folks, we've been busy cranking on the DreamFactory 1.9.0 release and after many long nights we're happy to announce....drumroll please....1.9.0 is live! Here's a quick round up of new features in the 1.9.0 release. Head on over to Bitnami to install DreamFactory 1.9.0 on your server of choice or grab it from GitHub.

DreamFactory Authentication SQL

Componentized services come to the foreground at Gartner’s AADI conference

Posted by Bryan Stewart

Wed, Feb 4, 2015

I recently attended Gartner’s Application Architecture, Development & Integration (AADI) Summit in Las Vegas. It was an excellent event, attended by more than one thousand IT and application development leaders and enterprise architects, who had gathered to learn, network with peers, and prepare for what’s next. 

REST API Mobile Apps Enterprise Applications IoT

Add a REST API to Your IBM DB2 Database in Four Easy Steps

Posted by Ben Busse

Tue, Jan 27, 2015

Got a DB2 database that needs a REST API? Now you can connect to your IBM DB2 with DreamFactory in just a few minutes. In this short blog post I'll explain how to connect to DB2 and use DreamFactory's auto-generated REST API for DB2.

REST API DreamFactory Enterprise Applications SQL

Case Study - How Senske Services Mobilizes their Business with DreamFactory and AngularJS

Posted by Ben Busse

Tue, Jan 13, 2015

In this blog post, Senske Services explains how they’ve used DreamFactory to quickly mobilize their business and stay ahead of the competition. They describe their experience building a mobile ticketing app for teams in the field that connects directly to their existing Microsoft SQL Server database.

REST API DreamFactory Enterprise Applications AngularJS

New Feature - Remote Web Service Caching

Posted by Todd Appleton

Fri, Nov 21, 2014

The DreamFactory Services Platform (DSP) supports adding any number of services to each DSP instance. These services are then accessible from the REST API that's built in to every DSP. Often these services are either a database or file storage but there's another service type called 'Remote Web Service'. This could be any service that has a REST API supporting JSON or XML document exchange. See this blog post for an overview of how remote web services are configured and called.

A Technology Giant Delivers Fast Results with DreamFactory's REST API Platform

Posted by Ben Busse

Thu, Nov 13, 2014

Working in one of the world’s largest and most established technology giants, product manager Edo Williams used DreamFactory to make a significant impact on a multi-million dollar project: migrating the company's primary internal reporting systems from Microstrategy to a new SAP Business Objects solution.

REST API DreamFactory Enterprise Applications AngularJS

How to REST-enable your Oracle database in Ten Minutes

Posted by Todd Appleton

Fri, Oct 24, 2014

Talking to developers over the last few months, one of the most common requests we received was to support Oracle as one of our native database types. We've just released version 1.8.0 of our DreamFactory Services Platform (DSP) which does exactly that. With some simple configuration you can create a service on the DSP for your Oracle database and access it via our REST API, either from your app or from the API Docs in the DSP admin console. By adding Oracle as a service on your DSP, you can easily control which users and apps have access to the database and what level of access they should have.

Creating a Data Manager with AngularJS + DreamFactory

Posted by Michael Mandato

Thu, Sep 18, 2014


Many people need an app just to perform CRUD on data. Usually they resort to using one of the many Grid or Table plugins that exist such as JTables or ngGrid. I’ve found that while these are valid solutions they generally lack the ability to enforce business rules on data entry, sometimes require additional plugins, and/or require specific formatting of data to populate the UI. The dfTable component for AngularJS attempts to be an easy to implement solution that plugs right into your AngularJS app and can work with your data right out of the box.

DreamFactory AngularJS Tutorials

DreamFactory Now Supported on Microsoft Windows

Posted by Todd Appleton

Tue, Sep 16, 2014

DreamFactory's open source REST API platform for mobile enterprise applications is now supported on Microsoft Windows environments. In this blog post we'll describe installation options and highlight some of the benefits DreamFactory can bring to your Microsoft projects.

Build Your Own Web Services Using DreamFactory Custom Scripts

Posted by Todd Appleton

Thu, Sep 4, 2014

A while back we introduced event scripts to the DreamFactory Services Platform (DSP). These scripts are triggered by events on specific resources such as a GET on a database table.  Starting with version 1.7.8 DreamFactory supports a second type of script called custom script.  Custom scripts are a little more flexible than event scripts because you can write custom scripts to implement any functionality you want and the client can invoke them directly via the REST API.  

Installing DreamFactory On Nginx Server

Posted by Jerry Ablan

Tue, Sep 2, 2014

Turning It Up To Eleven!

DreamFactory can be configured to use any web server. The core package ships with configuration examples for Apache as well as nginx. This guide will show you how to transform your ordinary, default Apache/pre-fork DSP into a shiny new nginx/FPM DSP! Sound cool? Read on!

Performance Nginx

Case Study: The Binary Workshop

Posted by Ben Busse

Tue, Aug 26, 2014

 The Binary Workshop is a technology agency in Chennai, India that offers consulting, training, and management services for cloud-based solutions. With expertise in product development and project management, particularly with startup companies, the firm recently shifted its focus to building its own software platform for managing startup coworking spaces, called TheWorks@pp. The need for the platform arose from requirements to manage their own coworking initiative in India, TheWorks@ (http://theworks.at).

Four Big Mistakes In Your REST API Strategy

Posted by Bill Appleton

Mon, Aug 4, 2014

I am starting to see a familiar pattern of big mistakes that companies make when developing a REST API strategy. This blog covers four myths and  misconceptions that every enterprise architect should be aware of before creating their own RESTful services. I spend a lot of time talking to customers, and unfortunately the conversation often goes something like this... 

Avoid Cloud Lock-In With Service Virtualization

Posted by Bill Appleton

Fri, Jul 18, 2014

My previous blog covered the new trend of cloud platform vendors creating developer facing services in an attempt to lock customers into proprietary interfaces. The danger for enterprise customers is that switching costs will rise, and this will reduce the flexibility and increase the cost of application deployments. Proprietary interfaces will reduce the compatibility between public, private, and hybrid cloud installations as well. But there is a great solution to this problem: a service platform like DreamFactory can abstract all of the connections to backend data sources and provide a virtualization layer at the service level. This allows applications to migrate between clouds, servers, and databases with ease. 

Get Ready For The Cloud API War

Posted by Bill Appleton

Wed, Jul 16, 2014

Get ready for a big strategic shift in the web services provided by Infrastructure as a Service (IaaS) and Platform as a Service (PaaS) vendors. This blog discusses these changes among public and private clouds from an Application Programmer Interface (API) perspective. By looking at the current way that services are offered, and analyzing some recent product announcements, we can begin to trace the future of where cloud computing is headed.

Case Study: A Mobile App for Ski Patrollers

Posted by Ben Busse

Wed, Jun 25, 2014

Gary Meyer is a professional software architect and volunteer ski patroller at a major ski resort in Colorado. He loves the outdoors and he loves to code too. Looking for ways to fuse technical innovation with volunteer interests, Meyer couldn’t help but wonder how mobile technologies could bring innovation to ski patrolling. He looked for what was available in the app stores, but couldn’t find a good mobile app targeted to the unique needs of the men and women who keep the slopes safe. There are about twenty-thousand ski patrollers in the U.S. alone and Meyer saw an opportunity to build a mobile app that would help them do their jobs better.

HTML5 REST API DreamFactory

The Enterprise-Grade REST API for SQL

Posted by Bill Appleton

Fri, Jun 13, 2014

DreamFactory supports a wide variety of backend systems including SQL, NoSQL, BLOB, email, users, roles, security, and integration. But in this blog post, I wanted to focus on our support for SQL databases. The vast majority of enterprise data is stored in a SQL database somewhere, and there is a huge need to access this information for mobile application development. So DreamFactory has really focused on building a comprehensive and enterprise-grade REST API for SQL. 

Data Segmentation with Server-Side Filtering and Lookup Keys

Posted by Todd Appleton

Tue, May 20, 2014

The 1.5 release of the DreamFactory Services Platform (DSP) introduces the ability to easily create server-side filters that control database access at the record level. Click here for an introduction to this feature, including how to restrict access by OwnerId. As a follow up to that post I want to give you a detailed example of how you can use this feature to "assign" records to certain users based on the value of a particular field. I'm not going to present an app that uses this feature, but I will show you all the details of how to set it up for your own DSP. Once everything is configured properly, the server will apply the filters you defined to all API calls.

DreamTeam Project Management Meets the DreamFactory Services Platform

Posted by Todd Appleton

Mon, May 5, 2014

DreamTeam was originally developed in 2005 and was the first application on the Salesforce.com AppExchange. Since then, over 20,000 companies have used DreamTeam for project and document management, resource management, collaborative calendaring, time & expense management, and project portfolio reporting. We're excited to announce that you can now run DreamTeam on the DreamFactory Services Platform. This is a great example of a rich client application that takes full advantage of our REST API platform to deliver enterprise-grade capabilities for project and document management.

Case Study: Solution Family Uses DreamFactory to Connect Mobile Users to Industrial Assets

Posted by Bill Appleton

Mon, May 5, 2014

While it will be some time until all our cars and fridges are connected to the Internet of Things, a software-consulting firm, Solution Family wants to connect much bigger machines to the Internet. With expertise that draws on the firm’s roots in embedded computing and machine-to-machine communication, the team at Solution Family turned to DreamFactory to enable its customers to connect all sorts of industrial assets to the cloud, so that sophisticated applications can monitor and control them.

To maximize the market appeal, Solution Family wants to make it easy for applications experts to leverage their existing development skills and integrate a wide array of machines, motors and sensors with expert systems — without any knowledge of the low-level drivers and machine code that used to be essential skills for this kind of programming.

DreamFactory 1.5 Introduces Server-Side Scripting

Posted by Bill Appleton

Mon, May 5, 2014

Version 1.5 of the DreamFactory Services Platform (DSP) introduces some incredibly powerful new features for mobile enterprise application development including Lookup Keys, Server-Side Filters, Server-Side Events, and Server-Side Scripting. We have implemented Server-Side Scripting to customize existing DSP services and create new ones. Use cases include formula fields, field validations, workflow triggers, access control, and custom limits. Here is a more detailed discussion of this exciting new capability, below.

Server-Side Scripting

For security reasons, we do not support Server-Side Scripting on the Free Hosted Edition of DreamFactory available at our website. We might do this at a future date when we are sure that there is no way for a user to crash the server or cause other problems. So you will need to install our open source software package on your own server or cloud. Fortunately, DreamFactory can be installed almost anywhere, see our Bitnami web page for more information.

When you have DreamFactory 1.5 installed, you will see a new "Scripts" tab at the bottom of the Admin Console. This tab shows the Server-Side Scripts that are available for customization. These event names are also listed in the Live API interface. You can select any branch of the REST tree, write your script, and click the "Save" button at the bottom of the screen. All of the code is in JavaScript. As you work, various notifications and warnings will appear as little icons on the left hand side of the editing area.

On the server side, we are using the V8 JavaScript engine developed by Google. We may add PHP as a language alternative in the future. Every script that is executed has access to the Lodash library. This library is automatically added to your script's context before execution. Lodash contains many powerful Javascript functions including MapReduce. Think of it as server-side jQuery, but without the DOM. You can read all about Lodash and what you can do with it on their web site.

DreamFactory 1.5 Introduces Server-Side Filters

Posted by Bill Appleton

Mon, May 5, 2014

Version 1.5 of the DreamFactory Services Platform (DSP) introduces some incredibly powerful new features for mobile enterprise application development including Lookup Keys, Server-Side Filters, Server-Side Events, and Server-Side Scripting. My previous blog covered Lookup Keys, and this post references that information in a few places. We have implemented Server-Side Filters to control record level access to objects in any legacy SQL or NoSQL database. Server-Side Filters also allow any database to be segmented by application, user, role, or field value. Here is a more detailed discussion of this exciting new capability, below.

Server-Side Filters

A DSP Admin has always been able to define roles that contain access permissions for specific database objects. For example, a role might grant access to a particular MongoDB collection or SQL table. But now Server-Side Filters can be used to implement record-level database access. Any number of filters can be added to a role permission. Each filter takes the form of a "field operator value" equation that must be true to enable access. The field can be any field in the database table. The operator can be equals, not equals, greater than, contains, etc. And the value can be any string, date, boolean, number, or Lookup Key.

Internal Filters

Server-Side Filters work great with the internal MySQL database installed on every DSP. Let's say you want to limit users to only work with data that they have created. First, add a user reference field named "OwnerID" to a table. You can use any field name. Next, create a role and grant access to the table, then add a Server-Side Filter that looks like this: "OwnerId = {user.id}". In this filter "OwnerId" is the name of the user reference field, and "{user.id}" is a Lookup Key that represents the ID of the current user. This simple filter limits user access to data that they have created!

In my example above, we need to include an OwnerId field set to the current user ID when new records are created. Trying to create a record without this information will return an error because of the filter constraint. To do this, simply use the Lookup Key name as the field value. So when a record is created the OwnerID field would be set to the string "{user.id}". Of course, this little trick does not work with private Lookup Keys. They can only be used for credentials and passwords.

DreamFactory 1.5 Introduces Lookup Keys

Posted by Bill Appleton

Thu, May 1, 2014

Version 1.5 of the DreamFactory Services Platform (DSP) introduces some incredibly powerful new features for mobile enterprise application development including Lookup Keys, Server-Side Filters, Server-Side Events, and Server-Side Scripting. I am really excited to be writing about all of these new features, starting with some of the interesting use cases for Lookup Keys. We have implemented this feature to provide a secure way to store external credentials and other information inside the DSP. Now individual users and roles can be connected to the corresponding user or role in an external SQL or NoSQL database. Here is a more detailed discussion of this exciting new capability, below.

The Authenticated App With AngularJS + DreamFactory User Management Module Part Three

Posted by Michael Mandato

Tue, Apr 29, 2014

Welcome back to those of you who have been following this tutorial series. To those of you just joining us I highly recommend starting at the beginning of the series with The Authenticated App with AngularJS + DreamFactory User Management. When we finished part two our application was starting to do some cool stuff. We could authenticate through the DreamFactory User Management Module without writing any code to communicate with the server and then we used that authenticated user to conditionally show navigation. We also were able to protect a route from url hacking using the 'resolve' property in Angular's $routeProvider.

The Authenticated App With AngularJS + DreamFactory User Management Part Two

Posted by Michael Mandato

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.

DreamFactory Authentication Tutorials

The Authenticated App With AngularJS + DreamFactory User Management

Posted by Michael Mandato

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!

Development HTML5 DreamFactory Mobile Apps Authentication Tutorials

Tutorial: Angular + REST Made Simple

Posted by Ben Busse

Tue, Mar 18, 2014

 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!


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

Posted by Bill Appleton

Sat, Mar 15, 2014

You 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.


Preventing Cloud Vendor Lock-in

Posted by Bill Appleton

Mon, Mar 3, 2014

Developers 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.


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

Posted by Bill Appleton

Tue, Feb 25, 2014

Adopting 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.

SQL and REST - Working with Related Data

Posted by Lee Hicks

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.

Introducing the DreamFactory Mobile Application

Posted by Bill Appleton

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.

Using OAuth with the New Portal Service (Part 2)

Posted by Jerry Ablan

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...

Remote Services API Authentication OAuth

Add a REST API to any SQL DB in Minutes

Posted by Todd Appleton

Wed, Jan 8, 2014

11/17/2015 - Originally written for DreamFactory 1.X, this post has been updated to reflect the current version, DreamFactory 2.0.

Have you got SQL data that you need to access from your mobile or web apps? If so, DreamFactory provides an easy and secure way to add a REST API to any SQL database in minutes. Supported SQL databases include SQLite, MySQL, SQL Server, Oracle, IBM DB2, Postgres, and SAP SQL Anywhere. With the free, open source DreamFactory REST API backend all you have to do is create a service for your database, then use the auto-generated REST API to access that service. Each DreamFactory instance comes with its own SQLite database that's accessible via the default 'db' service. Bitnami installs also include pre-configured MySQL and MongoDB (NoSQL) services. See the wiki for supported database types on the various host operating systems. In this blog post we'll show how to add additional services to REST-enable any SQL database. Then we'll show some simple examples of how to use the REST API to manage your SQL schema and data.

If you're a video kind of person, we have some screencasts available.

REST API DreamFactory API Enterprise Applications Enterprise Architecture SQL

Rise of the Service Platform

Posted by Bill Appleton

Mon, Jan 6, 2014

 I've been working with web services for over a decade, but during the next few years I expect REST APIs to become even more important for application development. A big reason for this trend is the growing popularity of mobile devices. All native and most HTML5 mobile applications will need RESTful services for collaboration and data storage. Wearable devices and the Internet of Things will need to communicate with services as well. And that's just the tip of the iceberg: many developers are now adopting web services for traditional application development tasks and server to server communication.

Announcing Our iPad Winner Sam Pretorius!

Posted by Ben Busse

Thu, Dec 19, 2013

 A few weeks ago we sent out a survey to our developer community to learn what types of mobile technologies developers are using and to get feedback on the DreamFactory Services Platform. You can see the survey results here.

Mobile Apps

Get Your Front End On - A Guest Blog Post by Andrew Baldock

Posted by Ben Busse

Mon, Dec 16, 2013

Andrew is a Frontend Engineer in San Francisco. He recently built an application called Skylab FM, a single-page application that uses RequireJS, BackboneJS, the SoundCloud API, and DreamFactory on the backend. In this guest blog post, Andrew walks you through how he built his app without writing any server-side code. 

DreamFactory Developer Survey - Enterprise Mobile Development in 2013

Posted by Ben Busse

Mon, Dec 9, 2013

 We sent out a survey to our registered users last week to get feedback on the DreamFactory Services Platform and to learn about mobile app usage and the technologies that our users are adopting. We thought it would be helpful to share some of the results with our community and with anyone interested in how mobile technologies are evolving.

Mobile Apps

Tutorial: DreamFactory Essentials for AWS - Create a Mobile Backend in Minutes with Bitnami

Posted by Ben Busse

Mon, Nov 25, 2013

We recently announced a partnership with Bitnami that makes building and deploying mobile applications on AWS incredibly easy with the DreamFactory Services Platform. In this blog post, I’ll show you how to install DreamFactory on AWS account in one click, securely connect to Amazon S3 file storage and Amazon DynamoDB NoSQL data with our REST API, and start building a mobile app that uses these great services.

This 7-step tutorial will have you up and running with a full mobile application backend on AWS, including an EC2 instance, REST-accessible S3 file storage, and REST-accessible DynamoDB NoSQL data. You’ll be up and running with a full RESTful mobile backend on AWSin less than 20 minutes, even if you know absolutely nothing about DreamFactory, AWS or Bitnami! (Note that if you just want to try out DreamFactory first without installing it on AWS you can sign up for a free developer account on our website or launch a free demo trial on Bitnami with username: user@example.com and password: bitnami).

REST API DreamFactory

BitNami Interviews DreamFactory Founder Bill Appleton

Posted by Ben Busse

Thu, Nov 21, 2013

BenBusse DreamFactory is excited to announce a new partnership with Bitnami. Bitnami makes installing DreamFactory a breeze. Now you can to install the DreamFactory Services Platform with one-click on AWS, VMWare, Windows Azure, Linux, and OS X!  

Bitnami sat down with DreamFactory founder Bill Appleton to talk a little about DreamFactory's history and where he sees the platform headed. Here are some excerpts from the interview.


Adding Users to Your DSP

Posted by Lee Hicks

Tue, Nov 12, 2013

 So, you have your DSP setup and an idea for an awesome app, now what? Well, unless you are the type that likes to be the sole beneficiary of your work and/or you like working all by your lonesome, then you are going to need to get other people in the mix.

Whether its adding consumers, collaborators, or customers, DreamFactory DSP provides several ways to add users to your DSP. Once added, you control what they can do by provisioning their role-based accesses.

DynamoDB App Tutorial with the DreamFactory SDK

Posted by Todd Appleton

Fri, Nov 8, 2013

ToddAppletonThis blog post is about building a to do list app using Amazon's DynamoDB for storage along with the DreamFactory Services Platform (DSP) for the backend. We'll show you how to add DynamoDB as a service on your DSP then we'll use DreamFactory's JavaScript SDK to authenticate and make CRUD calls to that service.

Weekly Digest