Refactored meaningful project name and its associated changes

This commit is contained in:
shankar 2024-12-13 16:31:08 +05:30
parent 7c288da183
commit 7bc7be60fa
97 changed files with 34 additions and 33 deletions

View File

@ -3,7 +3,7 @@ version: '3.8'
services:
frontend:
build:
context: ./router-dashboard
context: ./router-frontend
dockerfile: dockerfile
args:
- SERVER_IP=${SERVER_IP:-localhost}
@ -18,9 +18,9 @@ services:
depends_on:
backend:
condition: service_healthy
container_name: router_dashboard_frontend
container_name: router-dashboard-frontend
networks:
- app_network
- routernetwork
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://${SERVER_IP:-localhost}:5173"]
interval: 30s
@ -30,7 +30,7 @@ services:
backend:
build:
context: ./ve-router-backend
context: ./router-backend
dockerfile: dockerfile
ports:
- "${BACKEND_PORT:-3000}:3000"
@ -53,8 +53,8 @@ services:
start_period: 30s
timeout: 10s
networks:
- app_network
container_name: router_dashboard_backend
- routernetwork
container_name: router-dashboard-backend
mysql:
image: mysql:8.0
@ -78,13 +78,14 @@ services:
retries: 5
start_period: 30s
networks:
- app_network
container_name: router_dashboard_mysql
networks:
app_network:
driver: bridge
- routernetwork
container_name: router-dashboard-mysql
volumes:
mysql_data:
name: router_dashboard_mysql_data
name: router-dashboard-mysql-data
networks:
routernetwork:
name: routernetwork
driver: bridge

View File

@ -1,5 +1,5 @@
# setup.ps1
$projectName = "ve-router-backend"
$projectName = "router-backend"
# Colors for output
$green = "`e[0;32m"
@ -16,7 +16,7 @@ Set-Location -Path $projectName
Write-Host "$blue Initializing package.json... $nc"
$packageJson = @"
{
"name": "ve-router-backend",
"name": "router-backend",
"version": "1.0.0",
"description": "Router Management System Backend",
"main": "dist/app.js",

View File

@ -1,4 +1,4 @@
# ve-router-backend/Dockerfile
# router-backend/Dockerfile
FROM node:18-alpine
WORKDIR /app

View File

@ -1,18 +1,18 @@
{
"name": "ve-router-backend",
"name": "router-backend",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ve-router-backend",
"name": "router-backend",
"version": "1.0.0",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.18.2",
"mysql2": "^3.2.0",
"ve-router-backend": "file:",
"router-backend": "file:",
"winston": "^3.16.0"
},
"devDependencies": {
@ -3491,7 +3491,7 @@
"node": ">= 0.8"
}
},
"node_modules/ve-router-backend": {
"node_modules/router-backend": {
"resolved": "",
"link": true
},

View File

@ -1,5 +1,5 @@
{
"name": "ve-router-backend",
"name": "router-backend",
"version": "1.0.0",
"description": "Router Management System Backend",
"main": "dist/app.js",
@ -16,7 +16,7 @@
"dotenv": "^16.4.5",
"express": "^4.18.2",
"mysql2": "^3.2.0",
"ve-router-backend": "file:",
"router-backend": "file:",
"winston": "^3.16.0",
"bcryptjs": "^2.4.3",
"jsonwebtoken": "^9.0.2"

View File

@ -1,2 +0,0 @@
// router-dashboard/src/services/index.ts
export * from './api.service';

View File

@ -1,17 +1,17 @@
{
"name": "router-dashboard",
"name": "router-frontend",
"version": "0.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "router-dashboard",
"name": "router-frontend",
"version": "0.0.0",
"dependencies": {
"lucide-react": "^0.294.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"router-dashboard": "file:"
"router-frontend": "file:"
},
"devDependencies": {
"@types/node": "^22.9.0",
@ -3516,7 +3516,7 @@
"fsevents": "~2.3.2"
}
},
"node_modules/router-dashboard": {
"node_modules/router-frontend": {
"resolved": "",
"link": true
},

View File

@ -1,5 +1,5 @@
{
"name": "router-dashboard",
"name": "router-frontend",
"private": true,
"version": "0.0.0",
"type": "module",
@ -14,7 +14,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.14.1",
"router-dashboard": "file:"
"router-frontend": "file:"
},
"devDependencies": {
"@types/node": "^22.9.0",

View File

Before

Width:  |  Height:  |  Size: 905 B

After

Width:  |  Height:  |  Size: 905 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -1,4 +1,4 @@
// router-dashboard/src/services/api.service.ts
// router-dashboard-frontend/src/services/api.service.ts
import { RouterData, FilterType, BackendRouter } from '../types';
const API_BASE_URL = process.env.NODE_ENV === 'development'

View File

@ -0,0 +1,2 @@
// router-frontend/src/services/index.ts
export * from './api.service';

View File

@ -1,4 +1,4 @@
// router-dashboard/src/types/backend.ts
// router-frontend/src/types/backend.ts
export interface BackendStudy {
siuid: string;
patient_id: string;

View File

@ -1,4 +1,4 @@
// router-dashboard/src/types/index.ts
// router-frontend/src/types/index.ts
export interface Study {
siuid: string;
patientId: string;