Community Engagement Journalism Mobile App, Website, and Eco-System
Requires npm
$ npm update npm -g # make sure npm is installed/up to date
$ gem update --system # make sure RubyGems is installed/up to date
$ npm install -g cordova # make sure Cordova is installed
$ npm install -g grunt-cli # make sure Grunt CLI is installed
$ git clone https://github.com/hhroc/yellr.git
$ cd yellr
$ make init
You will now see a build/ folder at the root-level of the project. This holds all the HTML, CSS, and JS that Yellr runs with for the front-end, moderator, and public site.
You can run a local server to view the project (although optional)
$ pwd
yellr/
$ cd build
$ python -m SimpleHTTPServer
Optional if you are in the project root you can run this command to accomplish the same
$ make server
You will also see an app/ folder in the build/ directory. This is not where the actual application code lives. The Cordova application lives in the application folder of the project.
$ pwd
yellr/
$ cd application/
Because Cordova uses HTML/CSS/JS to build the application we can debug our code using the browser. More on this in the docs.
For Android: Android Guide For iOS: iOS Guide
$ make android # build android application
$ make ios # build ios application
The backend server that powers the mobile app and backend is built with Python using Pyramid
(virtualenv)$ pwd
yellr/
(virtualenv)$ cd src/server/yellr-serv
(virtualenv)$ python setup.py develop
(virtualenv)$ initialize_yellr-serv_db development.ini
(virtualenv)$ pserve development.ini
Alternative to creating a virtualenv, you can spin up a Vagrant VM
vagrant up
vagrant ssh
cd /cd server/yellr-serv
pserve development.ini
# navigate to http://192.168.50.100:5000/ on your host
Check out the docs folder for most of the stuff. An example of how to contribute to each section is laid out in the docs.
Screenshots of current development stage: https://imgur.com/a/En3xT