/Secure-Data-Management

Repo for Secure Data Management course

Primary LanguageJavaScript

SDM - Patient Health Records System

Requirements

  • NodeJS (I would recommend v9.0.0) and NPM
  • git

Installation for Development

  1. Clone the repository:
$ git clone git@github.com:LarsStegeman/Secure-Data-Management.git
  1. Install dependencies:
$ npm install

** Recommendation: ** Install nwjs SDK, so you can access Chromium Devtools with F12 while running the client for better debugging

$ npm install nw --nwjs_build_type=sdk
  1. (Re)set database
$ npm run db.reset
  1. Move Bootstrap required files to client/vendor
$ npm run build

Note: This step needs only to be executed once, as long as you don't delete client/vendor or its contents

  1. Run the client
$ npm run client

or the server

$ npm run server

Server REST API

When running the server, you can reach it at localhost:8080. Many routes are available (see server/routes foulder)

Troubleshooting

If versions mismatch when using nw use this: http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/