RedisValidation updated
This commit is contained in:
parent
ba9b1a9a73
commit
24eb6519f2
|
|
@ -32,7 +32,7 @@ def setup_cors_middleware(app: FastAPI) -> None:
|
||||||
"""
|
"""
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["*"],
|
allow_origins=["http://localhost:3000","*"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ class ApiConfig(DefaultApiConfig):
|
||||||
# Server Configuration
|
# Server Configuration
|
||||||
app = "app:app"
|
app = "app:app"
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 41575
|
port = 8888
|
||||||
log_level = "info"
|
log_level = "info"
|
||||||
reload = True
|
reload = True
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ def setup_cors_middleware(app: FastAPI) -> None:
|
||||||
"""
|
"""
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["*"],
|
allow_origins=["http://localhost:3000","*"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class ApiConfig(DefaultApiConfig):
|
||||||
# Uvicorn server configuration
|
# Uvicorn server configuration
|
||||||
app = "app:app"
|
app = "app:app"
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 41576
|
port = 8888
|
||||||
log_level = "info"
|
log_level = "info"
|
||||||
reload = True
|
reload = True
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ def setup_cors_middleware(app: FastAPI) -> None:
|
||||||
"""
|
"""
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["*"],
|
allow_origins=["http://localhost:3000","*"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class ApiConfig(DefaultApiConfig):
|
||||||
# App configuration
|
# App configuration
|
||||||
app = "app:app"
|
app = "app:app"
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 41577
|
port = 8888
|
||||||
log_level = "info"
|
log_level = "info"
|
||||||
reload = True
|
reload = True
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,72 @@ from .lang_models import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
currentData = dict(
|
||||||
|
NAME="AccountCluster",
|
||||||
|
PREFIX="/accounts",
|
||||||
|
URL="/dashboard?site=AccountCluster",
|
||||||
|
ICON="Building",
|
||||||
|
INFO={
|
||||||
|
"en": {
|
||||||
|
"page": "Account Records for reaching user all types account information",
|
||||||
|
},
|
||||||
|
"tr": {
|
||||||
|
"page": "Kullanıcı tüm hesap bilgilerine ulaşmak için Hesap Kayıtları",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
SUBCATEGORIES={
|
||||||
|
"/accounts/create": {
|
||||||
|
"SITE_URL": "/events/create?site=AccountCluster",
|
||||||
|
"COMPONENT": "Link",
|
||||||
|
"PREFIX_URL": "/accounts/create",
|
||||||
|
"INFO": {
|
||||||
|
"en": {
|
||||||
|
"page": "Create Account Records",
|
||||||
|
"actions": "Actions",
|
||||||
|
"table": "Table",
|
||||||
|
},
|
||||||
|
"tr": {
|
||||||
|
"page": "Hesap Kayıdı Oluştur",
|
||||||
|
"actions": "Aksiyonlar",
|
||||||
|
"table": "Tablo",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"INSTRUCTIONS": None,
|
||||||
|
},
|
||||||
|
"/accounts/list": {
|
||||||
|
"SITE_URL": "/events/dashboard?site=AccountCluster",
|
||||||
|
"COMPONENT": "Table",
|
||||||
|
"PREFIX_URL": "/accounts/list",
|
||||||
|
"INFO": {
|
||||||
|
"en": { "page": "List Account Records" },
|
||||||
|
"tr": { "page": "Hesap Kayıtlarını Listele" },
|
||||||
|
},
|
||||||
|
"INSTRUCTIONS": {
|
||||||
|
"headers": {
|
||||||
|
"store": True,
|
||||||
|
"url": "/validations/header",
|
||||||
|
"data": {
|
||||||
|
"event_code": "/accounts/list",
|
||||||
|
"asked_field": "headers",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"data": {
|
||||||
|
"store": True,
|
||||||
|
"url": "/accounts/list",
|
||||||
|
"data": {
|
||||||
|
"page": 1,
|
||||||
|
"limit": 1,
|
||||||
|
"order_by": "uu_id",
|
||||||
|
"order_type": "desc",
|
||||||
|
"query": None,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class ClustersPageInfo:
|
class ClustersPageInfo:
|
||||||
|
|
||||||
# Cluster Page Infos that are available for the client
|
# Cluster Page Infos that are available for the client
|
||||||
|
|
|
||||||
|
|
@ -1,32 +1,47 @@
|
||||||
services:
|
services:
|
||||||
init-service:
|
initservice:
|
||||||
|
container_name: initservice
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: DockerApiServices/InitServiceApi/Dockerfile
|
dockerfile: DockerApiServices/InitServiceApi/Dockerfile
|
||||||
|
|
||||||
auth-service:
|
authservice:
|
||||||
|
container_name: authservice
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: DockerApiServices/AuthServiceApi/Dockerfile
|
dockerfile: DockerApiServices/AuthServiceApi/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8081:41575"
|
- "8081:8888"
|
||||||
depends_on:
|
depends_on:
|
||||||
- init-service
|
- initservice
|
||||||
|
networks:
|
||||||
|
- wag-network
|
||||||
|
|
||||||
validation-service:
|
validationservice:
|
||||||
|
container_name: validationservice
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: DockerApiServices/ValidationServiceApi/Dockerfile
|
dockerfile: DockerApiServices/ValidationServiceApi/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8082:41577"
|
- "8082:8888"
|
||||||
depends_on:
|
depends_on:
|
||||||
- init-service
|
- initservice
|
||||||
|
networks:
|
||||||
|
- wag-network
|
||||||
|
|
||||||
event-service:
|
eventservice:
|
||||||
|
container_name: eventservice
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: DockerApiServices/EventServiceApi/Dockerfile
|
dockerfile: DockerApiServices/EventServiceApi/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8083:41576"
|
- "8083:8888"
|
||||||
depends_on:
|
depends_on:
|
||||||
- init-service
|
- initservice
|
||||||
|
networks:
|
||||||
|
- wag-network
|
||||||
|
|
||||||
|
networks:
|
||||||
|
wag-network:
|
||||||
|
name: wag-network
|
||||||
|
external: true
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check if wag-network exists
|
||||||
|
if ! docker network ls | grep -q "wag-network"; then
|
||||||
|
echo "Creating wag-network..."
|
||||||
|
docker network create wag-network
|
||||||
|
else
|
||||||
|
echo "wag-network already exists"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Bring down existing containers
|
||||||
|
echo "Stopping and removing existing containers..."
|
||||||
|
docker compose down --remove-orphans
|
||||||
|
|
||||||
|
# Build and start containers
|
||||||
|
echo "Building and starting containers..."
|
||||||
|
docker compose -f docker-compose-services.yml up --build -d
|
||||||
|
|
||||||
|
# Add container to wag-network
|
||||||
|
echo "Adding container to wag-network..."
|
||||||
|
docker container inspect authservice > /dev/null && docker network connect wag-network authservice
|
||||||
|
docker container inspect eventservice > /dev/null && docker network connect wag-network eventservice
|
||||||
|
docker container inspect validationservice > /dev/null && docker network connect wag-network validationservice
|
||||||
|
|
||||||
|
# Run migrations
|
||||||
|
echo "Setup complete! Backend Services Auth | Event | Validation are running..."
|
||||||
Loading…
Reference in New Issue