The DatasetManager maintains (CRUDs) the datasets (being used by extracts) in the DataGenerator project.
The project is setup as follows:
Contains all the Java DB entities for the tables in the models folder and PersistenceManager which handles the connections to the DB.
Contains all the endpoints for the API.
Contains the business logic for the application. This is where most of the code is held and should be unit tested.
Contains standard exception classes and swagger bootstrap code. This is also where the Metrics are initialised on loading.
JSON representations of the DB entities to allow communication between frontend and backend.
Contains the standard implementations for the metrics code.
Create a run configuration in IntelliJ using Tomcat -> Local.
In the deployment tab, click + choose Artifact and select API:war exploded.
Change the application context field to /
In the startup tab, click on debug and add these options into the environment variables.
CONFIG_JDBC_CLASS=com.mysql.jdbc.Driver CONFIG_JDBC_URL=jdbc:mysql://localhost:3306/config?useSSL=false CONFIG_JDBC_USERNAME=root CONFIG_JDBC_PASSWORD=
Click run and it should be up and running.
This is using Angular CLI so use this for creating any new components. https://cli.angular.io/ for more information.
service.ts files are used to communicate with the API.
Create a run configuration in IntelliJ using npm in the script input type start Click run and it should start running on http://localhost:4200