Initial commit: Next.js rewrite of Super Bowl Squares app
Full rewrite of the legacy PHP/MySQL app using Next.js 14, PostgreSQL, Prisma, NextAuth, Tailwind CSS, and WebSocket-based live chat/grid updates. Deployed via Docker Compose with a custom Node.js server for WebSocket support. Fix chat display names by passing userId from the NextAuth session over WebSocket instead of attempting to read the HttpOnly session cookie (which is inaccessible to JavaScript). Server now looks up the user's first name from the database using the userId. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<!--
|
||||
www.vnlisting.com
|
||||
Online Super Bowl Squares Script
|
||||
Please read the "Readme.txt for license agreement, installtion and usage instructions
|
||||
-->
|
||||
|
||||
<?php
|
||||
|
||||
//make changes accordingly to your database
|
||||
$hostname = "localhost";
|
||||
$database = "u595523489_btdosuperbowl";
|
||||
$username = "u595523489_supusr";
|
||||
$password = "g9Ml#s|1V";
|
||||
$conn = mysqli_connect($hostname, $username, $password, $database);
|
||||
if (!$conn) {
|
||||
die("Connection failed: ".mysqli_connect_error());
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user