-
Notifications
You must be signed in to change notification settings - Fork 0
/
structure.txt
85 lines (85 loc) · 4.02 KB
/
structure.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/sms-dashboard-project
│
├── /backend
│ ├── /config
│ │ ├── db.js # Database connection setup (MongoDB & MySQL)
│ │ ├── auth.js # JWT authentication middleware
│ │ └── index.js # Main configuration settings
│ │
│ ├── /controllers
│ │ ├── sessionController.js # Logic for session management
│ │ ├── metricsController.js # Logic for SMS metrics
│ │ ├── countryOperatorController.js # Logic for country-operator management
│ │ └── alertController.js # Logic for alerting
│ │
│ ├── /models
│ │ ├── Session.js # Mongoose model for session management
│ │ ├── CountryOperator.js # Mongoose model for country-operator pairs
│ │ └── Metric.js # Sequelize model for SMS metrics
│ │
│ ├── /routes
│ │ ├── sessionRoutes.js # API routes for session management
│ │ ├── metricsRoutes.js # API routes for metrics
│ │ └── countryOperatorRoutes.js# API routes for country-operator management
│ │
│ ├── /scripts
│ │ └── smsScripts.py # Python scripts for SMS functionality
│ │
│ ├── /services
│ │ └── telegramService.js # Logic for sending alerts via Telegram
│ │
│ ├── /middleware
│ │ └── adminMiddleware.js # Middleware for authorization checks
│ │
│ ├── app.js # Main application file
│ └── server.js # Server initialization
│
├── /frontend
│ ├── /public
│ │ ├── index.html # Main HTML file
│ │ └── favicon.ico # Application favicon
│ │
│ ├── /src
│ │ ├── /components
│ │ │ ├── Dashboard.js # Dashboard component for metrics
│ │ │ ├── ProgramControl.js # Component for controlling SMS sessions
│ │ │ ├── CountryOperatorManagement.js # Component for managing country-operator pairs
│ │ │ └── Login.js # Login component
│ │ │
│ │ ├── /context
│ │ │ └── AuthContext.js # Context for authentication
│ │ │
│ │ ├── /hooks
│ │ │ └── useMetrics.js # Custom hook for fetching metrics
│ │ │
│ │ ├── /pages
│ │ │ ├── DashboardPage.js # Dashboard page
│ │ │ ├── ProgramControlPage.js# Program control page
│ │ │ ├── CountryOperatorPage.js # Country-Operator management page
│ │ │ └── LoginPage.js # Login page
│ │ │
│ │ ├── /services
│ │ │ ├── api.js # API calls to backend
│ │ │ └── authService.js # Authentication logic
│ │ │
│ │ ├── /styles
│ │ │ └── styles.css # Global styles
│ │ │
│ │ ├── App.js # Main App component
│ │ └── index.js # Entry point for React
│ │
├── /monitoring
│ ├── /prometheus
│ │ └── prometheus.yml # Prometheus configuration file
│ │
│ └── /grafana
│ └── dashboards.json # Grafana dashboard configurations
│
├── /scripts # Any additional scripts (e.g., deployment scripts)
│
├── .env # Environment variables
├── .gitignore # Git ignore file
├── package.json # Node.js dependencies and scripts
├── package-lock.json # Lock file for dependencies
├── README.md # Project documentation
└── Dockerfile # Dockerfile for containerization (if applicable)