Tutorial by Examples: e

Default config is configured in import org.fusesource.restygwt.client.Defaults; Service root. By default, RestyGWT will use module name to get rest service root, to change it, call on module load: Defaults.setServiceRoot("/rest/"); Date format. By default, RestyGWT will send u...
Import and initialize Every module needs to be imported and pygame is no exception. Although we need to call the function pygame.init() for all imported modules in pygame to be initialized properly. If we forget this some modules won't work. The function also returns a tuple of all successfully a...
# the usual boilerplate setup cmake_minimum_required(2.8) project(my_test_project LANGUAGES CXX) # tell CMake to use CTest extension enable_testing() # create an executable, which instantiates a runner from # GoogleTest, Boost.Test, QtTest or whatever framework you use add_execut...
For more complex applications, you'll want to build up a ``settings.json` object using multiple environment variables. if(Meteor.isServer){ Meteor.startup(function()){ // this needs to be run on the server var environment, settings; environment = process.env.METEOR_ENV || "...
The METEOR_SETTINGS environment variable can accept JSON objects, and will expose that object in the Meteor.settings object. First, add a settings.json to your app root with some configuration info. { "public":{ "ga":{ "account":"UA-XXXXXXX-1" ...
Environment variables are also available to the server via the process.env object. if (Meteor.isServer) { Meteor.startup(function () { // detect environment by getting the root url of the application console.log(JSON.stringify(process.env.ROOT_URL)); // or by getting the port ...
To detect the environment on the server, we have to create a helper method on the server, as the server will determine which environment it is in, and then call the helper method from the client. Basically, we just relay the environment info from the server to the client. //------------------------...
As of Meteor 1.3, Meteor now exposes the NODE_ENV variable on the client by default. if (Meteor.isClient) { Meteor.startup(function () { if(process.env.NODE_ENV === "testing"){ console.log("In testing..."); } if(process.env.NODE_ENV === "production&...
Andrew Mao's solution. Average Aggregation Queries in Meteor Meteor.publish("someAggregation", function (args) { var sub = this; // This works for Meteor 0.6.5 var db = MongoInternals.defaultRemoteCollectionDriver().mongo.db; // Your arguments to Mongo's aggregation...
Development usually begins with an editor or an Integrated Development Environment. The following IDEs are known to support Meteor to some extent: Atom - Javascript IDE that can fully leverage Meteor's isomorphic javascript framework. If you want to be able to hack on your editor itself, this i...
Once you get past your 'Hello World' app, you'll need to start paying attention to your collection and document schemas, and will need some tools for managing your database. Robomongo - A longtime community favorite for managing Mongo. Highly recommended. JSON Generator - Invaluable utility for...
Developing Meteor apps usually means developing multi-client reactivity, which requires collaboration tools. The following tools have proven to be popular within the Meteor community. Google Hangouts - Video conferencing and chat. Zenhub.io - Kanban boards for GitHub. InVision - Collaborative ...
If you want to integrate Meteor with an external API, it's likely that it's going to exposed as a REST interface. We tend to use the following Chrome apps for testing REST APIs. Postman DHC Rest Client Online tools: Hurl.it RequestBin
Most debugging happens in the terminal or in the Chrome or Safari develop tools, which are plenty sophisticated enough for 99% of your needs. However, if you want to debug on Firefox or need extra server debugging functionality, there are a few extra utilities you can use. Firefox - Firebug Nod...
The idea is that a distro maintainer wants to run something like the following command: meteor publish-release clinical.meteor.rc6.json Which will then allow users of the distro to run this: meteor run --release clinical:[email protected]
A release manifest is similar to an NPM package.json file, in that it's primary concern is specify a list of Atmosphere packages, and providing a bit of metadata about that list of packages. The basic format looks like this: { "track":"distroname:METEOR", "version&qu...
If you need to extend the meteor tool or the command line, you'll need to create and publish your own meteor-tool package. Ronen's documentation is the best out there for this process: http://practicalmeteor.com/using-meteor-publish-release-to-extend-the-meteor-command-line-tool/1 It's easy to get...
StarryNight contains a small utility that parses an application's .meteor/versions file, and converts it into a Release Manifest. npm install -g starrynight cd myapp starrynight generate-release-json If you don't wish to use StarryNight, simply copy the contents of your .meteor/versions file i...
meteor publish-release --from-checkout

Page 502 of 1191