The pain reporting portal is de-identified patient and survey management system. It allows clinicians to schedule digital surveys to be delivered to patients. 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
git clone https://github.com/promisasu/Portal
- open the folder
cd Portal
- run
npm install
- The portal uses the same database as the CNMC PROMIS Application. Please ensure that you have the correct and latest schema. You can find the schema with some sample data in the database folder of this repository. For full dump, please contact the developers or refer to the dropbox.
- run
npm run init
- run
npm run user
. This command sets up the user who gains access to the portal once it's deployed. - Connect to the local MySQL server and run the command
set GLOBAL sql_mode="";
- 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 logsstart
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