Union Capital Boston

This project is being pitched at RHoK Boston: Hack the Hub, NDoCH 2014 May 31-June 1  #hackforchange 

Fun Stuff:

unioncapitaltest.meteor.com

Eric: investigate team out in Palo Alto, "Play Palo Alto"

http://stevelosh.com/blog/2013/04/git-koans/

People (Name, contact info, etc)

High Level Problems:

Homework:

General Project info

Things to research:

meteor.js http://docs.meteor.com/ & http://docs.meteor.com/

bootstrap-3 http://getbootstrap.com/

Twilio -> sms api http://www.twilio.com/docs/api/rest

Cordova (essentially the same as PhoneGap)

What question(s) is this project is trying to answer (for the hackathon weekend!)?

Walk-Through Notes

Relevant links (github repo, deployment url, etc)

Next steps

Setup Instructions:

1) Install Meteor

2) Install Meteorite

3) Packages are stored in the smart.json and smart.lock files

If you’re having package troubles try:

a) mrt add <package_name>

b) try manually adding smart.json

b) delete .meteor/.local

Cordova Integration

REPO for a Cordova Android app --> https://github.com/josmas/UCapp

So far, nothing is working; two devices cannot talk to each other on this network, so that might be interfering with testing.

UPDATE: It works; changing nothing; just using my home network it all works.

Note to update: Images are not being loaded for some reason.

There is a github organization that is compiling all available data and solutions: https://github.com/SpaceCapsule

Overview of available solutions: There are three different solutions described here.

I have tried two, but so far only one is working on the phone (showing stuff) but the phone is not talking to the back end. The solution that half works is https://github.com/SpaceCapsule/packmeteor

Installing Cordova: It can be downloaded, but I’ve found the the node CLI works pretty well: 

Install packmeteor with:

You will also have to install packmeteor through meteor, otherwise you will get an error of incompatible types when trying to pack the app.

Packmeteor works by packaging an app from a local server that has to be running. If you want the app to talk to a particular server, you can provide a flag:

This command has to be run from the www folder of an already existing Cordova app, purposely created for this. Do not create this app within the meteor project or it will start erroring out when run. 

Create the app with:

install android platform (make sure you have all tools for Android in your PATH):

Now you can package the app:

if you get the error:

Install packmeteor through mtr:

After the app is packaged you can run it in the emulator or an attached device, for instance:

Other solutions: https://github.com/guaka/meteor-phonegap

This guy takes the app from a deployed server at XXXX.meteor.com and packs it up to an android apk. It seems to work, but after loading the app on my phone, it keeps restarting in a loop. Their example (meteor docs) works well on my phone though.

Debugging on the phone: With Cordova installed, you can install a plugin that will let you connect to the phone directly through about:inspect (chrome dev tools). Tool is at https://github.com/jrstarke/webview-debug

Fixtures Code:

Meteor.startup(function () {

});

    var users = [ 

      {name: ’Admin User’, email: ’admin@gmail.com’, roles:[’admin’]}

    ]; 

      id = Accounts.createUser({

        email: user.email,

        password: ’temporary’,

        profile: { name: user.name }

      }); 

        Roles.addUsersToRoles(id, user.roles);

    });