The num-portal repository includes the backend for the Routine Data Platform (RDP).
To get the backend running first a postgres instance needs to be running.
To start a local instance of PostgreSQL:
docker run --name postgres -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 postgres
Then you can start the project with the setting for the application-local.yml:
In the root folder of the project, open cmd and run:
- Build app:
mvn clean install
- Run:
spring_profiles_active=local mvn spring-boot:run
After that you can visit the swagger website:
http://localhost:8090/swagger-ui/index.html
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. After that and the approval of HiGHmed e.V. ([email protected]) you can add the code in a Branch.
- Create a branch named 'feature/name-of-branch' because of pipeline requirements
- Check you code with our provided checkstyle
- Update the previously tests
- PRs can only be merged once the build_for_development pipeline has been successfully completed
To integrate checkstyle in your IDE (IntelliJ) you need the checkstyle-plugin. And for intelliJ we include a intellij-codestyle.xml file
- Add the file in Settings -> Editor -> Code Style -> Java
- For the checkstyle-plugin you can add the file checkstyle under Settings -> Tools -> Checkstyle -> Configuration File
Within the backend, controllers that are defined as Featurable can be activated and deactivated.
Example:
(@ConditionalOnProperty(value = “feature.search-by-manager”, havingValue = “true”)
They are defined within the application.yml. This configuration is then picked up in the frontend and deactivated features are not displayed there.
Copyright 2024 HiGHmed e.V.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.