background preloader

AppFog - PaaS for public and private clouds

AppFog - PaaS for public and private clouds

Where can we host Meteor/Meteorite applications Heroku | Cloud Application Platform Ruby Programming Language Running meteor in a cluster and real-time changes Node.js cloud products and services | Nodejitsu Inc. xolvio/real-time-development-with-meteor Test Driven Development with Meteor If you’ve followed the tech scene recently, Meteor won’t be anything new to you. We hear lots of good news about Meteor every week. If you haven’t heard of it before, Meteor is a revolutionary JavaScript framework that allows you to create realtime single page web applications very quickly. It’s an OpenSource project, but unlike other projects, it has serious funding to keep up the rapid development. Meteor is not a toy anymore Although Meteor is still young, many people are keen to build high volume production apps with it. Here, we’re talking about production quality applications, not prototypes anymore. What should a meteor testing framework look like? When you are developing a Meteor application, you write both the server and client code together and they are tightly interconnected. Meteor is all about realtime and how we can share data between clients (browsers). And most of all, it should be fun. Introducing Laika – a testing framework for meteor Setting up the system Additionally, So.

Angularjs and Meteor "Session" reactivity, is there a way Laika - testing framework for meteor Laika is a feature rich testing framework for meteor. With laika you can simply write tests that interact with both server and client(s). Installation and Setup First install laika from npm sudo npm install -g laika (you might need to install XCode Command Line Tools if you are on Mac) Download and install phantomJS You need to start a separate mongodb server mongod Write your first test with laika By default laika uses tdd style for the test. You need to place tests in tests folder in your meteor app. Our simple app Our simple meteor application has a collection shared in both the client and server. Posts = new Meteor.Collection('posts'); Let’s write our first test. We have defined a Posts test suite Within that we’ve a test named ‘in the server’ note that we’ve created our tests with test() method Then we evaluate some code block in the server Result will be send via an emit Now we can listen to the event in tests You can think server as an event emitter between the server and the test

Related: