Local Citizen Journalism in an elegant simple platform
- Encrypt your working directory
- Install nvm from here
- Install node v4.2.2 with
nvm install v4.2.2
- Install npm (node package manager)
npm install -g grunt-cli
- Install git
- Follow this tutorial to enable SSH github communication
git clone git@github.com:instanews/instanews.git
npm install
cd ~/workdir/instanews/client
npm install
bower install
- Install homebrew and Xcode on Mac
- Install Ruby
brew install ruby
- Install Compass
gem install compass
- Install mongodb
brew install mongodb
(You may need to create /data/db) - Download the Android Studio
grunt docs
grunt docs:gen
grunt docs:serve
grunt sdk
grunt coverage(:[unit,integration])
(Coverage reporting and checking as well as testing)grunt coverage:open
(Opens the generated coverage report in youe default browser)grunt check
(Checks if the generated coverage meets the required limits)grunt test(:[unit,integration])
(Skips coverage reporting)- You can use
cu
,ci
,tu
andti
as shortcuts for the different tests
grunt coverage:unit
cd ~/workdir/instanews/client
grunt karma
grunt start
(Starts a headless backend on localhost:3000)grunt serve
(Same as start but it also opens localhost:3000 in your default browser)grunt explorer
(Same as start but it also opens localhost:3000/explorer in your default browser)
cd client
grunt serve
(Builds the client from app to www and serves it) NOTE: grunt serve does not seem to be working, use the backend to serve for now withgrunt init
cd client
grunt build
cd ..
grunt serve
grunt start
cd client
grunt serve
DEBUG=loopback:* slc run
npm install -g node-inspector
grunt debug:OPTION
Where options are:unit
- for unit testsintegration
- for integration testsserver
- for the serverFILENAME
- any FILENAME relative to the the repo root directory The default isserver
- Fork a copy of instanews to your Github account
cd ~/workdir/instanews
- Check the remote Fetch and Push URLs with
git remote -v
git remote set-url --push origin git@github.com:YOURUSERNAME/instanews.git
git remote -v
(The push url should have been updated to point to your fork)git push
- Make a pull request from Github
-
- Scale the node cluster in Tutum
-
- Add the new nodes to the AWS ELB
export AUTOUPDATE_DB=true
grunt start