Skip to content

ManiNandadeep/dmhp-kpi

Repository files navigation

DmhpKpi - Frontend

This project was generated with Angular CLI version 12.0.1.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

DmhpKpi - Backend

Steps to run this project:

  • Populate the database from the SQL dump. Also, populate the tables' stored procedures
  • Change the environment variables in .env
  • To install all dependencies, run npm install in the main directory
  • cd Backend ; nodemon app
  • Make API calls as per the files in sample-json-calls subdirectory

Spring Boot Backend

Steps to run this project:

  • Install all maven dependencies
  • Configure application.properties and application.yaml
  • Populate the tables and stored procedures
  • Build, and run the project on IntelliJ for Java EE Developers

Run the tests of this project:

  • cd backend/test
  • Change the bearer token in expected.js by copying and pasting the value attained by accessing the /api/auth route.
  • npx mocha test.js (Note: If mocha is installed globally, mocha test.js will suffice.)
  • Note: You can increase the test timeout by adding the --timeout flag to the command.
  • To include code coverage metrics, run npx nyc mocha test.js
  • To run the autocannon blast tests, run dmhp_autocannon_tests.sh. Instructions to do so are given in the /backend/stress-testing folder.

MySQL Setup

In your MySQL console, create a new user root with all privileges, as follows:

  • CREATE USER 'root'@'localhost' IDENTIFIED BY 'insert-password-here';
  • GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
  • FLUSH PRIVILEGES;

Then, populate the database from the SQL dump, and change the corresponding environment variables in code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •