当前位置: 首页 > 软件库 > Web应用开发 > >

radar-covid-backend-configuration-server

Radar COVID Configuration Service
授权协议 MPL-2.0 License
开发语言 Java
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 缑智敏
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

RadarCOVID Configuration Service

Introduction

Configuration Service in terms of the Radar COVID project enables:

  • Getting exposition settings to be used by apps.
  • Getting internationalized texts.
  • Getting list of Autonomous Communities and their information.
  • Getting languages available: es-ES, ca-ES, en-US,...
  • Getting countries of interest available: DE, AT, DK, IT,...

Prerequisites

These are the frameworks and tools used to develop the solution:

Contentful is also used as content platform to manage literals for the different languages, etc.

Installation and Getting Started

Building from Source

To build the project, you need to run this command:

mvn clean package -P <environment>

Where <environment> has these possible values:

  • local-env. To run the application from local (eg, from IDE o from Maven using mvn spring-boot:run). It is the default profile, using application.yml configuration file. If any properties need to be modified, you can create application-local.yml configuration file.
  • docker-env. To run the application in a Docker container with docker-compose, using application.yml configuration file. If any properties need to be modified, you can create application-docker.yml configuration file.
  • pre-env. To run the application in the Preproduction environment. Preproduction environment properties are configured in the infrastructure.
  • pro-env. To run the application in the Production environment. Production environment properties are configured in the infrastructure

The project also uses Maven profile aws-env to include dependencies when it is running on AWS environment, so the compilation command for Preproduction and Production environments would be:

mvn clean package -P pre-env,aws-env
mvn clean package -P pro-env,aws-env

All profiles will load the default configuration.

Running the Project

Depends on the environment you selected when you built the project, you can run the project:

  • From the IDE, if you selected local-env environment (or you didn't select any Maven profile).
  • From Docker. Once you build the project, you will have in configuration-server-boot/target/docker the files you would need to run the application from a container (Dockerfile and the Spring Boot fat-jar).

If you want to run the application inside a Docker container in local, once you built it, you should run:

docker-compose up -d postgres
docker-compose up -d backend

Database

This project doesn't use either Liquibase or Flyway because:

  1. DB-Admins should only have database privileges to maintain the database model (DDL).
  2. Applications should only have privileges to maintain the data (DML).

Because of this, there are two scripts:

API Documentation

Along with the application there comes with OpenAPI Specification, which you can access in your web browser when the Verification Service is running (unless in Production environment, where it is inactive by default):

<base-url>/openapi/api-docs

You can download the YAML version in /openapi/api-docs.yaml

If running in local, you can get:

Endpoints

Endpoint Description Default values Sample response
/masterData/ccaa?locale=<locale>[&additionalInfo=<additionalInfo>&platform=<platform>&version=<platformVersion>] Get Autonomous Communities available locale=es-ES
additionalInfo=false
Response with additionalInfo=true:
response-masterData-ccaa-additionalInfo.json
/masterData/locales?locale=<locale>[&platform=<platform>&version=<platformVersion>] Get locales available locale=es-ES response-masterData-locales.json
/masterData/countries?locale=<locale>[&platform=<platform>&version=<platformVersion>] Get countries available locale=es-ES response-masterData-countries.json
/settings Get application settings response-settings.json
/texts?ccaa=<ccaa>[&locale=<locale>&platform=<platform>&version=<platformVersion>] Get texts by locale and Autonomous Community ccaa=ES
locale=es-ES
Response with default parameters.
response-texts.json

NOTE: The sample responses are using default parameters so returns are in castellano. The real information is not in a JSON file; as we said before, we use Contentful to maintain the languages, texts, etc.

Modules

Configuration Service has four modules:

  • configuration-server-parent. Parent Maven project to define dependencies and plugins.
  • configuration-server-api. DTOs exposed.
  • configuration-server-boot. Main application, global configurations and properties. This module also has integration tests and Java architecture tests with ArchUnit.
  • configuration-server-service. Business and data layers.

Support and Feedback

The following channels are available for discussions, feedback, and support requests:

Type Channel
Issues

Contribute

If you want to contribute with this exciting project follow the steps in How to create a Pull Request in GitHub.

More details in CONTRIBUTING.md.

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.

 相关资料
  • Radar 是一款基于java语言,使用Springboot + Mongodb + Groovy 等框架搭建的轻量级实时风控引擎,适用于反欺诈应用场景,极简的配置,开箱即用。通过本项目能快速了解风险的定义,进而量化风险 ,最后达到集中管理风险的目的。 项目特点 实时风控,特殊场景可以做到100ms内响应 可视化规则编辑器,丰富的运算符、计算规则灵活 支持中文,易用性更强 自定义规则引擎,更加灵活

  • COVID-Net 是一个深度卷积神经网络,旨在通过在胸部 X 光片上识别出该疾病的明显迹象来筛查可疑冠状病毒感染的患者。 系统安装要求: 经过 Tensorflow 1.13 和 1.15 测试 OpenCV 4.2.0 Python 3.6 Numpy OpenCV Scikit-Learn Matplotlib

  • COVID-CT The utility of this dataset has been confirmed by a senior radiologist in Tongji Hospital, Wuhan, China, who has performed diagnosis and treatment of a large number of COVID-19 patients durin

  • RSSHub Radar 是 RSSHub 的衍生项目,她是一个可以帮助你快速发现和订阅当前网站 RSS 和 RSSHub 的浏览器扩展 Chrome Store 地址:https://chrome.google.com/webstore/detail/kefjpfngnndepjbopdmoebkipbgkggaa

  • Bluetooth Radar 一款用于发现蓝牙设备, 传输文件和一些比较有趣的软件。

  • DuckDuckGo Tracker Radar 是一个公开的数据集,包含了最常见的跨站点跟踪器,以及有关其跟踪行为的详细信息,包括普遍性、所有权、指纹行为、cookie 行为、隐私策略,特定资源的规则和性能数据等等。 它能够自动生成数据,同时不断更新、不断测试,可用于提供简单的自定义解决方案。 Tracker Radar 生成的数据包含两个主要信息。一是每个第三方域的文件,并包含关于该文件的详细