Aktualisiere Datenbankverbindung auf neuen Port und füge SQL-Befehl zum Erstellen der Benutzertabelle hinzu
This commit is contained in:
34
Speicher.txt
34
Speicher.txt
@@ -1,35 +1,23 @@
|
|||||||
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
||||||
|
|
||||||
http://phpmyadmin-ikockwc4sccc8oogoocswgow.100.100.54.2.sslip.io/
|
http://phpmyadmin-ikockwc4sccc8oogoocswgow.100.100.54.2.sslip.io/
|
||||||
agione.ddns.net:5432
|
agione.v6.rocks:3210
|
||||||
root
|
root
|
||||||
Jonas2007
|
Jonas2007
|
||||||
|
|
||||||
<script src="/socket.io/socket.io.js"></script>
|
<script src="/socket.io/socket.io.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
UM Tabelle zu erstellen
|
||||||
|
CREATE TABLE users (
|
||||||
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
username VARCHAR(255) NOT NULL UNIQUE,
|
||||||
|
email VARCHAR(255),
|
||||||
|
password VARCHAR(255) NOT NULL,
|
||||||
|
fullName VARCHAR(255),
|
||||||
|
createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
/**@param {} x*/
|
/**@param {} x*/
|
||||||
/**@typeof {} x*/
|
/**@typeof {} x*/
|
||||||
|
|
||||||
|
|
||||||
https://codedamn.com/news/nodejs/use-json-web-token-jwt-in-nodejs
|
|
||||||
|
|
||||||
|
|
||||||
<div class="screen">
|
|
||||||
<nav>
|
|
||||||
<h1>Spiel-Code:</h1>
|
|
||||||
<h1 class="message">1A3B5C</h1>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<div id="playerList">
|
|
||||||
<div id="player1" class="player">
|
|
||||||
<h1>Spieler 1</h1>
|
|
||||||
<h2>test</h2>
|
|
||||||
</div>
|
|
||||||
<div id="player2" class="player">
|
|
||||||
<h1>Spieler 2</h1>
|
|
||||||
<h2>test</h2>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -5,7 +5,7 @@ class DataBaseManager {
|
|||||||
constructor(host, database) {
|
constructor(host, database) {
|
||||||
this.connection = mySql.createConnection({
|
this.connection = mySql.createConnection({
|
||||||
host: host,
|
host: host,
|
||||||
port: 5432,
|
port: 3210,
|
||||||
user: "root",
|
user: "root",
|
||||||
password: "Jonas2007",
|
password: "Jonas2007",
|
||||||
database: database
|
database: database
|
||||||
|
|||||||
Reference in New Issue
Block a user