One of the design decisions we made to build Meteor was initially only supporting MongoDB as the backing database. This decision has affected all parts of the stack, for example the use of Minimongo on the client. So while it was obvious that Meteor would eventually need support for other databases, as mentioned in the Meteor roadmap blog post, it was very unclear what that support would look like. We had a lot of internal design discussions and considered many approaches, but at the end of the day there was only one way to find out: Build a prototype and try using it.
And that’s what we’ve done: we have a first prototype of support for using PostgreSQL as the database for a Meteor app, while maintaining all of the features that makes Meteor so great to use:
- Live-updating database queries
- The ability to use similar code on the client and the server
- Automatic optimistic UI
- Synchronous-style APIs enabled by Fibers
Try it out
We have written down our thoughts and directions for getting started with this preview in a guide, available here: http://meteor-postgres.readthedocs.org/en/latest/
Give us feedback!
Give the guide a read through to see what we came up with, and try it out by running the example apps! Let us know what you think on this thread, and file any issues you encounter on GitHub.