krsyer-server-monitor-pro 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UPDATES.md +84 -0
- package/lib/controllers/cloudflareController.js +1 -1
- package/lib/controllers/dockerController.js +1 -1
- package/lib/controllers/networkController.js +1 -1
- package/lib/controllers/serverController.js +1 -1
- package/lib/ecosystem.config.js +1 -1
- package/lib/middleware/saasAuth.js +1 -1
- package/lib/routes/cloudflareRoutes.js +1 -1
- package/lib/routes/dockerRoutes.js +1 -1
- package/lib/routes/networkRoutes.js +1 -1
- package/lib/routes/serverRoutes.js +1 -1
- package/lib/server.js +1 -1
- package/lib/services/cashfreeService.js +1 -1
- package/package.json +8 -1
- package/guestguru-api/.idea/guestguru-api.iml +0 -9
- package/guestguru-api/.idea/misc.xml +0 -6
- package/guestguru-api/.idea/modules.xml +0 -8
- package/guestguru-api/.idea/vcs.xml +0 -6
- package/guestguru-api/API_DESIGN_GUIDE.md +0 -140
- package/guestguru-api/API_DOCUMENTATION.md +0 -504
- package/guestguru-api/API_REQUIREMENTS_TENANTS.md +0 -110
- package/guestguru-api/AVAILABLE_TENANT_ENDPOINTS.md +0 -137
- package/guestguru-api/BACKEND_INSTRUCTIONS.md +0 -77
- package/guestguru-api/DINING_MODULE_INTEGRATION.md +0 -175
- package/guestguru-api/FRONTEND_FINANCE_MODULE.md +0 -151
- package/guestguru-api/README.md +0 -93
- package/guestguru-api/app.json +0 -12
- package/guestguru-api/database.sqlite +0 -0
- package/guestguru-api/eas.json +0 -21
- package/guestguru-api/ecosystem.config.js +0 -19
- package/guestguru-api/fix_db_schema.js +0 -77
- package/guestguru-api/list_columns.js +0 -27
- package/guestguru-api/package.json +0 -34
- package/guestguru-api/postman_backend_v2.json +0 -1745
- package/guestguru-api/postman_collection.json +0 -477
- package/guestguru-api/postman_environment.json +0 -17
- package/guestguru-api/public/icon.png +0 -0
- package/guestguru-api/public/icon_b64.txt +0 -1
- package/guestguru-api/readd_column.js +0 -27
- package/guestguru-api/server.js +0 -263
- package/guestguru-api/test_cashfree_connection.js +0 -52
- package/license-portal/.env.example +0 -15
- package/license-portal/README.md +0 -93
- package/license-portal/ecosystem.config.js +0 -16
- package/license-portal/package.json +0 -22
- package/license-portal/server.js +0 -306
- package/license-portal/services/emailService.js +0 -126
- package/license-portal/views/pricing.html +0 -358
- package/temp_cf_method.js +0 -48
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const db = require('./src/models');
|
|
2
|
-
|
|
3
|
-
async function reAdd() {
|
|
4
|
-
try {
|
|
5
|
-
await db.sequelize.authenticate();
|
|
6
|
-
console.log("Connected.");
|
|
7
|
-
|
|
8
|
-
try {
|
|
9
|
-
console.log("Dropping aadharNo...");
|
|
10
|
-
await db.sequelize.query("ALTER TABLE app_users DROP COLUMN aadharNo;");
|
|
11
|
-
console.log("Dropped.");
|
|
12
|
-
} catch (e) {
|
|
13
|
-
console.log("Drop failed (might not exist):", e.message);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
console.log("Adding aadharNo...");
|
|
17
|
-
await db.sequelize.query("ALTER TABLE app_users ADD COLUMN aadharNo VARCHAR(255) NULL;");
|
|
18
|
-
console.log("Added.");
|
|
19
|
-
|
|
20
|
-
process.exit(0);
|
|
21
|
-
} catch (error) {
|
|
22
|
-
console.error("Error:", error);
|
|
23
|
-
process.exit(1);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
reAdd();
|
package/guestguru-api/server.js
DELETED
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
const express = require('express');
|
|
2
|
-
const bodyParser = require('body-parser');
|
|
3
|
-
const cors = require('cors');
|
|
4
|
-
const helmet = require('helmet');
|
|
5
|
-
const morgan = require('morgan');
|
|
6
|
-
require('dotenv').config();
|
|
7
|
-
|
|
8
|
-
const db = require('./src/models');
|
|
9
|
-
const authRoutes = require('./src/routes/authRoutes');
|
|
10
|
-
const roomRoutes = require('./src/routes/roomRoutes');
|
|
11
|
-
const paymentRoutes = require('./src/routes/paymentRoutes');
|
|
12
|
-
const dashboardRoutes = require('./src/routes/dashboardRoutes');
|
|
13
|
-
const superAdminRoutes = require('./src/routes/superAdminRoutes');
|
|
14
|
-
const subscriptionRoutes = require('./src/routes/subscriptionRoutes');
|
|
15
|
-
const legalRoutes = require('./src/routes/legalRoutes');
|
|
16
|
-
const planRoutes = require('./src/routes/planRoutes');
|
|
17
|
-
const cashfreeRoutes = require('./src/routes/cashfreeRoutes');
|
|
18
|
-
// const phonePeRoutes = require('./src/routes/phonePeRoutes');
|
|
19
|
-
const financeRoutes = require('./src/routes/financeRoutes');
|
|
20
|
-
const diningRoutes = require('./src/routes/diningRoutes');
|
|
21
|
-
const notificationRoutes = require('./src/routes/notificationRoutes');
|
|
22
|
-
const complaintRoutes = require('./src/routes/complaintRoutes');
|
|
23
|
-
const emailRoutes = require('./src/routes/emailRoutes');
|
|
24
|
-
|
|
25
|
-
const app = express();
|
|
26
|
-
|
|
27
|
-
// Trust Proxy (Required for Nginx/Heroku/Load Balancers to pass Protocol headers)
|
|
28
|
-
app.enable('trust proxy');
|
|
29
|
-
|
|
30
|
-
// Force HTTPS Middleware (Only in Production)
|
|
31
|
-
app.use((req, res, next) => {
|
|
32
|
-
if (process.env.NODE_ENV === 'production') {
|
|
33
|
-
if (req.secure || req.headers['x-forwarded-proto'] === 'https') {
|
|
34
|
-
return next();
|
|
35
|
-
}
|
|
36
|
-
return res.redirect('https://' + req.headers.host + req.url);
|
|
37
|
-
}
|
|
38
|
-
next();
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
// Middleware
|
|
42
|
-
app.use(cors());
|
|
43
|
-
app.use(helmet({
|
|
44
|
-
contentSecurityPolicy: {
|
|
45
|
-
directives: {
|
|
46
|
-
defaultSrc: ["'self'"],
|
|
47
|
-
scriptSrc: ["'self'", "'unsafe-inline'", "https://sdk.cashfree.com", "https://*.cashfree.com"],
|
|
48
|
-
frameSrc: ["'self'", "https://sdk.cashfree.com", "https://*.cashfree.com"],
|
|
49
|
-
connectSrc: ["'self'", "https://*.cashfree.com"],
|
|
50
|
-
imgSrc: ["'self'", "data:", "https://*.cashfree.com"],
|
|
51
|
-
formAction: ["'self'", "https://*.cashfree.com", "https://api.cashfree.com"],
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
}));
|
|
55
|
-
// app.use(morgan('dev'));
|
|
56
|
-
app.use(bodyParser.json({ limit: '500mb' }));
|
|
57
|
-
app.use(bodyParser.urlencoded({ limit: '500mb', extended: true }));
|
|
58
|
-
|
|
59
|
-
// Database Synchronization
|
|
60
|
-
// In production, use migrations instead of sync()
|
|
61
|
-
// Database Synchronization
|
|
62
|
-
// In production, use migrations instead of sync()
|
|
63
|
-
const path = require('path');
|
|
64
|
-
// Serve static files from the 'public' directory
|
|
65
|
-
app.use(express.static(path.join(__dirname, 'public')));
|
|
66
|
-
|
|
67
|
-
// Database Synchronization
|
|
68
|
-
// In production, use migrations instead of sync()
|
|
69
|
-
db.sequelize.sync().then(async () => {
|
|
70
|
-
console.log("Database synced successfully.");
|
|
71
|
-
await ensureSchemaUpdates();
|
|
72
|
-
createSuperAdmin();
|
|
73
|
-
}).catch(err => {
|
|
74
|
-
console.log("Failed to sync database: " + err.message);
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
async function ensureSchemaUpdates() {
|
|
78
|
-
try {
|
|
79
|
-
console.log("Checking schema for missing columns...");
|
|
80
|
-
|
|
81
|
-
// 1. Add 'aadharNo' to 'app_users'
|
|
82
|
-
try {
|
|
83
|
-
const [results] = await db.sequelize.query("SHOW COLUMNS FROM app_users LIKE 'aadharNo'");
|
|
84
|
-
if (results.length === 0) {
|
|
85
|
-
console.log("Missing aadharNo in app_users, adding...");
|
|
86
|
-
await db.sequelize.query("ALTER TABLE app_users ADD COLUMN aadharNo VARCHAR(255) NULL;");
|
|
87
|
-
console.log("Added aadharNo.");
|
|
88
|
-
}
|
|
89
|
-
} catch (e) {
|
|
90
|
-
console.error("Error checking aadharNo:", e.message);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// 2. Add 'aadharNo' to 'app_movedoutTenants' (if it exists)
|
|
94
|
-
try {
|
|
95
|
-
const [results] = await db.sequelize.query("SHOW TABLES LIKE 'app_movedoutTenants'");
|
|
96
|
-
if (results.length > 0) {
|
|
97
|
-
const [cols] = await db.sequelize.query("SHOW COLUMNS FROM app_movedoutTenants LIKE 'aadharNo'");
|
|
98
|
-
if (cols.length === 0) {
|
|
99
|
-
await db.sequelize.query("ALTER TABLE app_movedoutTenants ADD COLUMN aadharNo VARCHAR(255) NULL;");
|
|
100
|
-
console.log("Added aadharNo to movedOutTenants.");
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
} catch (e) { }
|
|
104
|
-
|
|
105
|
-
// 3. Add 'pgType' to 'app_users'
|
|
106
|
-
try {
|
|
107
|
-
const [results] = await db.sequelize.query("SHOW COLUMNS FROM app_users LIKE 'pgType'");
|
|
108
|
-
if (results.length === 0) {
|
|
109
|
-
console.log("Missing pgType in app_users, adding...");
|
|
110
|
-
await db.sequelize.query("ALTER TABLE app_users ADD COLUMN pgType VARCHAR(20) DEFAULT 'hostel';");
|
|
111
|
-
console.log("Added pgType.");
|
|
112
|
-
}
|
|
113
|
-
} catch (e) {
|
|
114
|
-
console.error("Error checking pgType:", e.message);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// 4. Add 'securityDeposit' to 'app_users'
|
|
118
|
-
try {
|
|
119
|
-
const [results] = await db.sequelize.query("SHOW COLUMNS FROM app_users LIKE 'securityDeposit'");
|
|
120
|
-
if (results.length === 0) {
|
|
121
|
-
console.log("Missing securityDeposit in app_users, adding...");
|
|
122
|
-
await db.sequelize.query("ALTER TABLE app_users ADD COLUMN securityDeposit FLOAT DEFAULT 0.0;");
|
|
123
|
-
console.log("Added securityDeposit.");
|
|
124
|
-
}
|
|
125
|
-
} catch (e) {
|
|
126
|
-
console.error("Error checking securityDeposit:", e.message);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// 4. Drop Foreign Keys for Payments & Complaints to Allow "History" (Orphaned IDs)
|
|
130
|
-
// The user wants to Hard Delete the User but KEEP the userId in the payments table.
|
|
131
|
-
// This violates standard referential integrity unless we DROP the Foreign Key.
|
|
132
|
-
try {
|
|
133
|
-
console.log("Dropping strict Foreign Keys to allow History retention...");
|
|
134
|
-
|
|
135
|
-
// Apply to Payments
|
|
136
|
-
try {
|
|
137
|
-
await db.sequelize.query(`ALTER TABLE app_payments DROP FOREIGN KEY app_payments_ibfk_1`);
|
|
138
|
-
console.log("Dropped strict FK on app_payments.");
|
|
139
|
-
} catch (e) { } // Ignore if already dropped or doesn't exist
|
|
140
|
-
|
|
141
|
-
// Apply to Complaints
|
|
142
|
-
try {
|
|
143
|
-
await db.sequelize.query(`ALTER TABLE app_complaints DROP FOREIGN KEY app_complaints_ibfk_1`);
|
|
144
|
-
console.log("Dropped strict FK on app_complaints.");
|
|
145
|
-
} catch (e) { }
|
|
146
|
-
|
|
147
|
-
} catch (e) {
|
|
148
|
-
console.log("Schema Update Error (FK Drop): " + e.message);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// 5. Update ENUM for Notifications (Add 'welcome', 'room')
|
|
152
|
-
try {
|
|
153
|
-
console.log("Updating ENUM for app_notifications...");
|
|
154
|
-
await db.sequelize.query("ALTER TABLE app_notifications MODIFY COLUMN type ENUM('rent', 'payment', 'complaint', 'dining', 'broadcast', 'general', 'welcome', 'room') DEFAULT 'general';");
|
|
155
|
-
console.log("Updated app_notifications type ENUM.");
|
|
156
|
-
} catch (e) {
|
|
157
|
-
console.error("Error updating Notification ENUM:", e.message);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// 6. Update ENUM for Payments (Add 'security_deposit')
|
|
161
|
-
try {
|
|
162
|
-
console.log("Updating ENUM for app_payments...");
|
|
163
|
-
await db.sequelize.query("ALTER TABLE app_payments MODIFY COLUMN type ENUM('monthly_rent', 'registration_fee', 'deposit', 'security_deposit', 'other') DEFAULT 'monthly_rent';");
|
|
164
|
-
console.log("Updated app_payments type ENUM.");
|
|
165
|
-
} catch (e) {
|
|
166
|
-
console.error("Error updating Payment ENUM:", e.message);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
} catch (err) {
|
|
170
|
-
console.error("Schema Update Error:", err);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
async function createSuperAdmin() {
|
|
176
|
-
const User = db.User;
|
|
177
|
-
const bcrypt = require('bcryptjs');
|
|
178
|
-
try {
|
|
179
|
-
const admin = await User.findOne({ where: { role: 'superadmin' } });
|
|
180
|
-
if (!admin) {
|
|
181
|
-
await User.create({
|
|
182
|
-
name: "Super Admin",
|
|
183
|
-
email: "admin@pg.com",
|
|
184
|
-
password: bcrypt.hashSync("admin123", 8),
|
|
185
|
-
role: 'superadmin',
|
|
186
|
-
isActive: true
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
} catch (e) {
|
|
191
|
-
console.log("Error creating superadmin", e);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
// Routes
|
|
196
|
-
app.get('/', (req, res) => {
|
|
197
|
-
res.json({ message: "Welcome to PG Backend API." });
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
// Email Route
|
|
201
|
-
app.use('/api', emailRoutes);
|
|
202
|
-
|
|
203
|
-
app.get('/api/payment-success', (req, res) => {
|
|
204
|
-
const { txnId } = req.query;
|
|
205
|
-
res.send(`
|
|
206
|
-
<html>
|
|
207
|
-
<head>
|
|
208
|
-
<title>Payment Status</title>
|
|
209
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
210
|
-
<style>
|
|
211
|
-
body { font-family: 'Segoe UI', sans-serif; text-align: center; padding: 40px; background: #f4f6f8; }
|
|
212
|
-
.card { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: inline-block; max-width: 400px; width: 100%; }
|
|
213
|
-
h1 { color: #28a745; margin-bottom: 10px; }
|
|
214
|
-
p { color: #555; font-size: 16px; margin: 20px 0; }
|
|
215
|
-
.btn { display: inline-block; padding: 12px 24px; background: #007bff; color: white; text-decoration: none; border-radius: 6px; font-weight: 600; }
|
|
216
|
-
</style>
|
|
217
|
-
</head>
|
|
218
|
-
<body>
|
|
219
|
-
<div class="card">
|
|
220
|
-
<h1>Payment Processing</h1>
|
|
221
|
-
<p>We are verifying your payment.</p>
|
|
222
|
-
<p>Transaction ID:<br><strong>${txnId || 'N/A'}</strong></p>
|
|
223
|
-
<p>Please return to the app.</p>
|
|
224
|
-
</div>
|
|
225
|
-
<script>
|
|
226
|
-
// Post message to parent window if in iframe/webview
|
|
227
|
-
if (window.opener) {
|
|
228
|
-
try { window.opener.postMessage({ status: 'payment_complete', txnId: '${txnId}' }, '*'); } catch(e){}
|
|
229
|
-
}
|
|
230
|
-
</script>
|
|
231
|
-
</body>
|
|
232
|
-
</html>
|
|
233
|
-
`);
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
app.use('/api/auth', authRoutes);
|
|
237
|
-
app.use('/api/rooms', roomRoutes);
|
|
238
|
-
app.use('/api/payments', paymentRoutes);
|
|
239
|
-
app.use('/api/admin/payments', paymentRoutes); // Alias for frontend compatibility
|
|
240
|
-
app.use('/api/tenants', require('./src/routes/tenantRoutes'));
|
|
241
|
-
app.use('/api/dashboard', dashboardRoutes);
|
|
242
|
-
app.use('/api/announcements', require('./src/routes/announcementRoutes'));
|
|
243
|
-
app.use('/api/superadmin', superAdminRoutes);
|
|
244
|
-
app.use('/api/subscriptions', subscriptionRoutes);
|
|
245
|
-
app.use('/api/plans', planRoutes);
|
|
246
|
-
app.use('/api/payments/cashfree', cashfreeRoutes);
|
|
247
|
-
// app.use('/api/payments/phonepe', phonePeRoutes);
|
|
248
|
-
app.use('/api/legal', legalRoutes);
|
|
249
|
-
app.use('/api/finance', financeRoutes);
|
|
250
|
-
app.use('/api/dining', diningRoutes);
|
|
251
|
-
app.use('/api/notifications', notificationRoutes);
|
|
252
|
-
app.use('/api/complaints', complaintRoutes);
|
|
253
|
-
|
|
254
|
-
// Error Handling
|
|
255
|
-
app.use((err, req, res, next) => {
|
|
256
|
-
console.error(err.stack);
|
|
257
|
-
res.status(500).send({ message: 'Something broke!' });
|
|
258
|
-
});
|
|
259
|
-
|
|
260
|
-
const PORT = process.env.PORT || 5000;
|
|
261
|
-
app.listen(PORT, () => {
|
|
262
|
-
console.log(`Server is running on port ${PORT}.`);
|
|
263
|
-
});
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const { Cashfree, CFEnvironment } = require('cashfree-pg');
|
|
2
|
-
require('dotenv').config();
|
|
3
|
-
|
|
4
|
-
console.log("Testing Cashfree Connection...");
|
|
5
|
-
console.log("NODE_ENV:", process.env.NODE_ENV);
|
|
6
|
-
console.log("AppID:", process.env.CASHFREE_APP_ID ? process.env.CASHFREE_APP_ID.substring(0, 5) + '...' : 'MISSING');
|
|
7
|
-
|
|
8
|
-
const cfInstance = new Cashfree();
|
|
9
|
-
cfInstance.XClientId = process.env.CASHFREE_APP_ID;
|
|
10
|
-
cfInstance.XClientSecret = process.env.CASHFREE_SECRET_KEY;
|
|
11
|
-
cfInstance.XEnvironment = process.env.NODE_ENV === 'production'
|
|
12
|
-
? CFEnvironment.PRODUCTION
|
|
13
|
-
: CFEnvironment.SANDBOX;
|
|
14
|
-
|
|
15
|
-
console.log("Cashfree Object Keys:", Object.keys(Cashfree));
|
|
16
|
-
console.log("Cashfree Prototype Keys:", Object.getOwnPropertyNames(Cashfree.prototype || {}));
|
|
17
|
-
|
|
18
|
-
async function testOrder() {
|
|
19
|
-
try {
|
|
20
|
-
const orderId = "TEST_" + Date.now();
|
|
21
|
-
const request = {
|
|
22
|
-
order_amount: 1.00,
|
|
23
|
-
order_currency: "INR",
|
|
24
|
-
order_id: orderId,
|
|
25
|
-
customer_details: {
|
|
26
|
-
customer_id: "test_user_123",
|
|
27
|
-
customer_phone: "9999999999",
|
|
28
|
-
customer_name: "Test User"
|
|
29
|
-
},
|
|
30
|
-
order_meta: {
|
|
31
|
-
return_url: "https://google.com"
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
console.log("Sending Request with Instance...");
|
|
36
|
-
|
|
37
|
-
const response = await cfInstance.PGCreateOrder("2023-08-01", request);
|
|
38
|
-
console.log("Success! Payment Session ID:", response.data.payment_session_id);
|
|
39
|
-
console.log("Pay URL:", response.data.payment_link);
|
|
40
|
-
|
|
41
|
-
} catch (error) {
|
|
42
|
-
console.error("Test Failed!");
|
|
43
|
-
if (error.response) {
|
|
44
|
-
console.error("Status:", error.response.status);
|
|
45
|
-
console.error("Data:", JSON.stringify(error.response.data, null, 2));
|
|
46
|
-
} else {
|
|
47
|
-
console.error("Error:", error.message);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
testOrder();
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
PORT=4000
|
|
2
|
-
NODE_ENV=production
|
|
3
|
-
|
|
4
|
-
# Your Cashfree Keys (The same ones)
|
|
5
|
-
CASHFREE_APP_ID=1164413cb8a8b0f8c98da00bd0f3144611
|
|
6
|
-
CASHFREE_SECRET_KEY=cfsk_ma_prod_126e046813270a58359788647a1ae315_bbef541f
|
|
7
|
-
|
|
8
|
-
# Where this portal is hosted
|
|
9
|
-
APP_URL=https://mulasoft.in
|
|
10
|
-
|
|
11
|
-
# Database
|
|
12
|
-
DB_HOST=localhost
|
|
13
|
-
DB_USER=mulaorg
|
|
14
|
-
DB_PASSWORD=Krishika@9959
|
|
15
|
-
DB_NAME=license_portal
|
package/license-portal/README.md
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# license-portal
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Getting started
|
|
6
|
-
|
|
7
|
-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
-
|
|
9
|
-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
-
|
|
11
|
-
## Add your files
|
|
12
|
-
|
|
13
|
-
* [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
-
* [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
cd existing_repo
|
|
18
|
-
git remote add origin https://gitlab.com/mulaorg/license-portal.git
|
|
19
|
-
git branch -M main
|
|
20
|
-
git push -uf origin main
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Integrate with your tools
|
|
24
|
-
|
|
25
|
-
* [Set up project integrations](https://gitlab.com/mulaorg/license-portal/-/settings/integrations)
|
|
26
|
-
|
|
27
|
-
## Collaborate with your team
|
|
28
|
-
|
|
29
|
-
* [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
30
|
-
* [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
31
|
-
* [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
32
|
-
* [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
33
|
-
* [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)
|
|
34
|
-
|
|
35
|
-
## Test and Deploy
|
|
36
|
-
|
|
37
|
-
Use the built-in continuous integration in GitLab.
|
|
38
|
-
|
|
39
|
-
* [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/)
|
|
40
|
-
* [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
41
|
-
* [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
42
|
-
* [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
43
|
-
* [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
# Editing this README
|
|
48
|
-
|
|
49
|
-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
50
|
-
|
|
51
|
-
## Suggestions for a good README
|
|
52
|
-
|
|
53
|
-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
54
|
-
|
|
55
|
-
## Name
|
|
56
|
-
Choose a self-explaining name for your project.
|
|
57
|
-
|
|
58
|
-
## Description
|
|
59
|
-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
60
|
-
|
|
61
|
-
## Badges
|
|
62
|
-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
63
|
-
|
|
64
|
-
## Visuals
|
|
65
|
-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
66
|
-
|
|
67
|
-
## Installation
|
|
68
|
-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
69
|
-
|
|
70
|
-
## Usage
|
|
71
|
-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
72
|
-
|
|
73
|
-
## Support
|
|
74
|
-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
75
|
-
|
|
76
|
-
## Roadmap
|
|
77
|
-
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
78
|
-
|
|
79
|
-
## Contributing
|
|
80
|
-
State if you are open to contributions and what your requirements are for accepting them.
|
|
81
|
-
|
|
82
|
-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
83
|
-
|
|
84
|
-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
85
|
-
|
|
86
|
-
## Authors and acknowledgment
|
|
87
|
-
Show your appreciation to those who have contributed to the project.
|
|
88
|
-
|
|
89
|
-
## License
|
|
90
|
-
For open source projects, say how it is licensed.
|
|
91
|
-
|
|
92
|
-
## Project status
|
|
93
|
-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mulasoft-license-portal",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Payment and License Management Portal",
|
|
5
|
-
"main": "server.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "node server.js",
|
|
8
|
-
"dev": "nodemon server.js"
|
|
9
|
-
},
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"body-parser": "^1.20.2",
|
|
12
|
-
"cashfree-pg": "^5.1.0",
|
|
13
|
-
"cors": "^2.8.5",
|
|
14
|
-
"dotenv": "^16.3.1",
|
|
15
|
-
"express": "^4.18.2",
|
|
16
|
-
"mysql2": "^3.16.0",
|
|
17
|
-
"nodemailer": "^7.0.12"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"nodemon": "^3.1.11"
|
|
21
|
-
}
|
|
22
|
-
}
|