finalized automated build for web

This commit is contained in:
2020-08-09 14:43:33 +09:00
parent 94a9d18c02
commit 56b3448138
19 changed files with 83 additions and 35 deletions

View File

@@ -1,3 +1,4 @@
admin/
client/
build/
build/
.env

View File

@@ -13,6 +13,7 @@
"license": "ISC",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"mysql": "^2.18.1",
"socket.io": "^2.3.0",

View File

@@ -3,10 +3,12 @@ import socketIo from 'socket.io';
import http from 'http';
import cors from 'cors';
import mysql from 'mysql';
import dotenv from 'dotenv';
import { v1 } from 'uuid';
import { IJankenSelect, IJankenResult } from './models/message';
dotenv.config();
const port: number = 8080;
const app: express.Express = express();
const httpServer: http.Server = http.createServer(app);
@@ -16,9 +18,9 @@ const tournaments: Record<string, number> = {};
const players: Record<string, number> = {};
const connection = mysql.createPool({
connectionLimit: 10,
host: 'test-db.csmrqtei38qi.ap-northeast-1.rds.amazonaws.com',
user: 'admin',
password: '12341234',
host: 'catherine-fc.csmrqtei38qi.ap-northeast-1.rds.amazonaws.com',
user: process.env.DB_USER,
password: process.env.DB_PASS,
database: 'catherine_league'
});
connection.query(