BuddyUp API and celery workers.
(Cleanup for the below is coming!)
To bootstrap the codebase, docker and file-syncing, in one tab run:
d workon
d bootstrap
Then, to kick off the app machines, run
d workon
d up
The first time, run
d syncdb
Dev hostnames are all set up - here's the list:
- http://app.bu - BuddyUp App
- http://marketing.bu - Marketing Site
- http://gc.bu - Ground Control
- http://dashboard.bu - School Dashboard
d bash
Will get you in.
d bash
cd app;
gulp update # update all libs
gulp blaze # complile blaze rules
gulp deploy_blaze # push blaze rules to server
We've got lots of dependencies and we try to keep them current.
gulp check
from inside docker will give you the potential updates.
- Install all of the above, including the latest SDKs.
- If you're on Mac OS, install this fix: http://stackoverflow.com/questions/30812770/ant-jar-error-execute-failed-java-io-ioexception-cannot-run-program-aapt
(my path was
/Applications/android-sdk-tools...
) cd native/ionic;
- Plug in your android phone via USB
ionic run android
- Remote debugging: https://developer.chrome.com/devtools/docs/remote-debugging .
- Devices link:
chrome://inspect/#devices
BuddyUp is built on ionic. If you're not familiar with ionic, please read through their high-level docs, and familiarize yourself with the Ionic design patterns before jumping in!
All builds that pass CI on master are deployed.
This is all in Steven's head right now. We should get it out.
(TODO: Put these notes somewhere organized.) http://forum.ionicframework.com/t/ionic-toturial-for-building-a-release-apk/15758
Sign Android app
cd native/ionic/releases/android
keytool -genkey -v -keystore BuddyUp.keystore -alias BuddyUp -keyalg RSA -keysize 2048 -validity 10000
# Enter password (in 1p)
BuddyUp was fully internationalized. Every user-facing string should be wrapped in translate tags where possible.
Please read up on angular-gettext here: https://angular-gettext.rocketeer.be/dev-guide/translate/ before adding any content.
unlock Android phone
cd native/ionic
ionic run android
open Android phone
- unlock iPhone
- open xCode
- select buddyup project
- build buddyup (press 'play' in xCode)