The alpha application for NIACE, running on Meteor.
http://inspire-me-dev.herokuapp.com/
These both point to the same heroku instance
The branches of the repo are monitored by Travis-CI, the develop branch will deploy to the dev site and the master branch will deploy to the live site. Please keep this in mind.
(requires xcode on a mac) The app should update itself each time it's ran, to get the code from the live site. If a Cordova build is required maybe to update the stories for offline then follow these steps.
$ npm run buildForDeploy
curl https://install.meteor.com/ | sh
npm install
npm run jshint
npm run test
cd app
meteor
do this just before a mobile app build to publish the currently publicly available stories for offline use
MONGOHQ_URL=mongodb://username:password@host:port/dbname ./scripts/packageOfflineDatabase.js > app/public/offline.js
# make sure the meteor server is running and in a new terminal
meteor mongo
# once attached to the mongo DB
db.stories.drop();
db.themes.drop();
exit
# stop meteor then cd back into the repo's root
# ( replace 150 with as many stories as needed )
cat app/private/data/themes.json | ./scripts/fillout.js 150 > app/private/data/stories.json
# then restart meteor
cd app
meteor
The app should report that it's loading the fixtured stories and themes from the private/data folder