/aqua-api

REST api for aquaponics data

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

aqua-api

REST api for aquaponics data

install

Database

Install mysql Run the database script

$ mysql
mysql> source PATH_TO_AQUA-API/setup/createdb.sql

If this is development mode then you can additionally add the devuser.

mysql> source PATH_TO_AQUA-API/setup/devuser.sql

Any changes you make to the database config in those scripts must also be changed in dbconf.js.

Application Code

$ npm install

Edit client-settings.js with your web address and port

test

$ npm test

Tests use the database config from dbconf.js