backend changes

This commit is contained in:
Chandini 2025-09-04 07:49:01 +05:30
parent 53af324e06
commit 64ef1718fb
3 changed files with 36 additions and 3 deletions

View File

@ -0,0 +1,31 @@
# Server
NODE_ENV=development
PORT=8000
# Service Targets (for local gateway, Docker services)
USER_AUTH_URL=http://localhost:8011
TEMPLATE_MANAGER_URL=http://localhost:8009
REQUIREMENT_PROCESSOR_URL=http://localhost:8001
TECH_STACK_SELECTOR_URL=http://localhost:8002
ARCHITECTURE_DESIGNER_URL=http://localhost:8003
CODE_GENERATOR_URL=http://localhost:8004
TEST_GENERATOR_URL=http://localhost:8005
DEPLOYMENT_MANAGER_URL=http://localhost:8006
DASHBOARD_URL=http://localhost:8008
# Infrastructure
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=secure_redis_password
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=dev_pipeline
POSTGRES_USER=pipeline_admin
POSTGRES_PASSWORD=secure_postgres_password
RABBITMQ_HOST=rabbitmq
RABBITMQ_PORT=5672
RABBITMQ_USER=pipeline_admin
RABBITMQ_PASSWORD=secure_rabbitmq_password
# CORS
FRONTEND_URL=https://dashboard.codenuk.com

View File

@ -13,7 +13,8 @@ async function runMigrations() {
'002_admin_approval_workflow.sql', '002_admin_approval_workflow.sql',
'003_custom_templates.sql', '003_custom_templates.sql',
'004_add_is_custom_flag.sql', '004_add_is_custom_flag.sql',
'004_add_user_id_to_custom_templates.sql' '004_add_user_id_to_custom_templates.sql',
'005_fix_custom_features_foreign_key.sql'
]; ];
for (const migrationFile of migrationFiles) { for (const migrationFile of migrationFiles) {

View File

@ -46,8 +46,9 @@ class CustomFeature {
INSERT INTO custom_features ( INSERT INTO custom_features (
id, template_id, template_type, name, description, complexity, id, template_id, template_type, name, description, complexity,
business_rules, technical_requirements, approved, usage_count, created_by_user_session, business_rules, technical_requirements, approved, usage_count, created_by_user_session,
status, admin_notes, admin_reviewed_at, admin_reviewed_by, canonical_feature_id, similarity_score status, admin_notes, admin_reviewed_at, admin_reviewed_by, canonical_feature_id, similarity_score,
) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16) created_at, updated_at
) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,DEFAULT,DEFAULT)
RETURNING * RETURNING *
`; `;
const values = [ const values = [