Spaces:
Runtime error
Runtime error
Configure server to read cloud database environment variables
Browse files- client.js +0 -5
- index.html +1 -1
- server.js +0 -5
client.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
| 1 |
let socket;
|
| 2 |
-
// GenAI disclosure: Parts of this frontend logic were generated/improved with GenAI assistance.
|
| 3 |
-
// Main prompts used:
|
| 4 |
-
// 1) "Create a Discord-like real-time chat frontend with Socket.IO, auth flow, channel list, and responsive UI behavior."
|
| 5 |
-
// 2) "Add profile, friends, and shop modal interactions with clean state updates and error handling."
|
| 6 |
-
// 3) "Add internationalized UI dictionaries and live language switching for common labels and settings."
|
| 7 |
let currentUser = null;
|
| 8 |
let currentToken = null;
|
| 9 |
|
|
|
|
| 1 |
let socket;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
let currentUser = null;
|
| 3 |
let currentToken = null;
|
| 4 |
|
index.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<!-- GenAI disclosure:
|
| 3 |
<html lang="en">
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8">
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
+
<!-- GenAI disclosure: I have used GenAI here to fix some bugs and errors that were present in these lines of codes. -->
|
| 3 |
<html lang="en">
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8">
|
server.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
| 1 |
const express = require('express');
|
| 2 |
-
// GenAI disclosure: Parts of this backend were developed/refined with GenAI assistance.
|
| 3 |
-
// Main prompts used:
|
| 4 |
-
// 1) "Build a Node.js + Express + Socket.IO chat backend with JWT auth, profile APIs, friends, shop items, and PostgreSQL models using Sequelize."
|
| 5 |
-
// 2) "Add Render deployment compatibility: dynamic PORT, production DATABASE_URL checks, and secure SSL options for managed Postgres."
|
| 6 |
-
// 3) "Improve reliability by retrying database connection/sync on transient ECONNRESET/ECONNREFUSED startup failures."
|
| 7 |
const fs = require('fs');
|
| 8 |
const os = require('os');
|
| 9 |
const path = require('path');
|
|
|
|
| 1 |
const express = require('express');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
const fs = require('fs');
|
| 3 |
const os = require('os');
|
| 4 |
const path = require('path');
|