Epilepsy Portal
The Epilepsy portal is de-identified patient and survey management system. It allows clinicians to view the response collected through mobile application. As well as allowing clinicians to monitor patient responses to look for possible interventions.
- install Git
- install Node JS
- install MySql
- optionally install Node Gyp dependencies (strongly recommended)
- clone git repository
https://github.com/promisasu/BrainTracker_Portal.git
- open the folder
cd Portal
- run
npm install
- if you do not already have a database user, create one
- create a new empty database
CREATE SCHEMA epilepsy_development;
- run
npm run init
- run
npm run seed
- run
npm run start
- run
npm run status
to view status of all servers - run
npm run log
to view server logs
- run
npm run lint
- run
npm run test
- run
npm run documentation
- open the
documentation
folder in a file explorer - open
index.html
in a browser
Tasks can be run by calling npm run <task>
check
detect outdated or insecure packagesdocumentation
generate code documentationinit
create a server configuration filelint
lint check project fileslint-fix
auto fixes some lint errorslog
view server logsseed
fill database with sample datastart
start all servicesstart-dashboard
start dashboard servicestart-scheduler
start scheduler servicestatus
check service statusesstop
stop all servicesstop-dashboard
stop dashboard servicestop-scheduler
stop scheduler servicesync
synchronize database schematest
run the test suiteuser
create a new uservalidate
detect invalid server configuration