A responsive web monitoring, alerting, analytics, and reporting application for Coconut Surveillanceā¢ for malaria elimination.
CouchDB -- installed locally or in Docker
-
Clone the Repository
git clone git@github.com:Coconut-Data/coconut-cloud.git cd coconut-cloud/_attachments
-
Create the config.json file and edit its contents
cp config.defaults.json config.json
Then edit its contents to point at a database in CouchDB:
{
"targetUrl": "127.0.0.1",
"targetDatabase": "zanzibar",
"username": "admin",
"password": "password"
}
-
Install packages and start the app
npm install npm start
Then go to http://127.0.0.1:8082
Server installation instructions
-
Clone the Repository
cd /var/www git clone git@github.com:Coconut-Data/coconut-cloud.git analytics cd _attachments npm run install-server
-
Create the config.json file and edit its contents
cp config.defaults.json config.json
-
Edit nginx config (Requires nginx):
location /analytics { alias /var/www/analytics/_attachments; }
-
(Optional) Add crontab to pull automatically
15 * * * * cd /var/www/analytics-dev; export GIT_SSH_COMMAND='ssh -i /root/.ssh/coconut_cloud_rsa'; git reset --hard origin/master; git pull origin master