Reminds people to take their medication.
- Working node installation
- Working mongodb installation (follow relevant guide from http://docs.mongodb.org/manual/installation/)
- Nodejitsu account (or other node + mongodb hosting solution, must have an accessible internet url in order for twilio to work. Sign up for nodejitsu at https://www.nodejitsu.com/)
Assuming you have installed node and mongodb correctly and can execute the node
command and have a mongodb daemon running (try running the command line mongo
client, if that doesn't work, try starting the daemon mongod
)
- Install npm packages. At project root directory run
npm install
. - Make sure the mongodb daemon is running (try using the command line
mongo
client, if that fails start the daemon usingmongod
orsudo service mongodb start
on ubunu. - In project directory run
node express/install.js
, this interactive script tells you it will install some base dummy data to get your started. Press enter when asked. - If step 3 went ok, you should see some output in the terminal about the objects that were inserted in the database. You may need to copy the _id field of the patient, in the client router index (public/js/router.js index function), there is some code to fetch a patient by id. Paste the id of the patient that was inserted into the database here so the index function will work.
- Run
node express/app.js
, this starts the express server and listens by default on localhost:8080. - Go to
http://localhost:8080
on a browser and you should see the login page. - Log in with the default user credentials
[email protected]
with passtakeyourmeds