This project was generated with Angular CLI version 12.0.1.
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.
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
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
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.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
- 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
- Install all maven dependencies
- Configure
application.properties
andapplication.yaml
- Populate the tables and stored procedures
- Build, and run the project on IntelliJ for Java EE Developers
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: Ifmocha
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, rundmhp_autocannon_tests.sh
. Instructions to do so are given in the/backend/stress-testing
folder.
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.