EHRs-Data-Visualisation
Developed as a third year project.
Installation
- Clone this project or Download that ZIP file
- Make sure you have bower, gulp and npm installed globally
- On the command prompt run the following commands
- cd
project-directory
bower install
npm install
npm install angular-material
npm install express
npm install body-parser
npm install method-override
npm install morgan
npm install cookie-parser
npm install cloudinary
npm install sendgrid
- get your API keybower install angular-nvd3
gulp serve
- For development modegulp build
- concat, minify and generate the files for deployment
Development
Chrome devs are asked to download the Allow-Control-Allow-Origin Extension to be able to allow POST request to a different domain with AngularJS $http. service. (Error: CORS header 'Access-Control-Allow-Origin' missing) This is because the server to which the post request is being sent to has to implement CORS to grant JavaScript from your website access. Your JavaScript can't grant itself permission to access another website.