This repository contains all files relevant to the backend Register Service:
- Service written in Spring boot application handles backend registration and validation process.
- Contains Integration tests validating all MVC architectural layers.
- Contains log configuration file (log4j.properties)
mvn clean installmvn spring-boot:runSimulate how Heroku containerizes and launches the app with the Heroku CLI
heroku localmvn checkstyle:checkmvn spotbugs:check- register-service
- .github
- workflows
- CI.yml -> On push, runs tests, static analysis, bug checks, linting, and provides test coverage report
- workflows
- src
- main
- java
- com.example.registerservice - RegisterServiceApplication.java -> Initiates spring boot server
- controller -> Handles HTTP requests
- RegisterController
- exception -> Throws a custom error in case of any general issues while the register microservice is running
- ExceptionHandler
- model -> Model representing the database structure created for each registered user
- dto -> Data transfer object
- ErrorDTO
- PersonDTO
- Person
- dto -> Data transfer object
- repository -> Repository that contains methods for data retrieval/modification operations
- PersonRepository
- security -> Contains configurations and security settings
- SecurityConfig
- WebConfiguration
- service -> Service handling business-logic specific to person-related operations
- PersonService
- java
- main
- resources
- templates
- application.properties -> Stores configuration properties
- log4j.properties -> Configuration for logging
- templates
- test
- java
- com.example.registerservice -> Integration tests covering MVC layers
- PersonRegistrationIntegrationTest
- RegistrationControllerIntegrationTest
- com.example.registerservice -> Integration tests covering MVC layers
- java
- .github
- procfile -> Process types required by the app
- system.properties -> Required Heroku settings
- mwnw -> Build tool
- DATABASE_URL
- DATABASE_NAME
- DATABASE_PASSWORD