ABANDONED in favour of https://github.com/openfoodfoundation/openfoodnetwork
Front end code of katuma.org
Want to know more and participate? Please visit http://community.coopdevs.org
Put debugger
in the server code you want to debug and then run this on a Terminal.
./node_modules/node-inspector/bin/node-debug.js --debug-port=5999
$ cd ~/Sites/coopdevs/katuma-provisioning
$ vagrant up
$ vagrant ssh
$ cd katuma/
$ bundle exec rails s --binding 0.0.0.0
$ localhost:3000
$ vagrant ssh
$ cd katuma-web/
$ npm run dev
$ localhost:8000
$ cd ~/Sites/coopdevs/
$ mkdir katuma
$ cd katuma/
$ git clone https://github.com/coopdevs/katuma.git api
$ git clone https://github.com/coopdevs/katuma-web.git web
$ cd ~/Sites/coopdevs/katuma/api
$ bundle exec rails s
$ localhost:3000
$ cd ~/Sites/coopdevs/katuma/web
$ nvm use 4.5
$ npm run dev
$ localhost:8000
$ brew update
$ brew doctor
$ brew install postgresql
$ initdb /usr/local/var/postgres -E utf8
$ gem install lunchy
$ mkdir -p ~/Library/LaunchAgents
$ cp /usr/local/Cellar/postgresql/9.2.1/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
$ lunchy start postgres
$ lunchy stop postgres
More info: https://www.moncefbelyamani.com/how-to-install-postgresql-on-a-mac-with-homebrew-and-lunchy/
$ brew install redis
$ brew services start redis