firts commit

This commit is contained in:
2025-10-24 10:24:44 +09:00
commit 3951198256
154 changed files with 12093 additions and 0 deletions

9
server/config/db.js Normal file
View File

@@ -0,0 +1,9 @@
var mssql = require('mssql');
const db = mssql.createPool({
host : '10.10.11.7:20022',
user : 'kri',
password : 'kri#51304',
database : 'kon_db'
});
module.exports = db;

23
server/server.js Normal file
View File

@@ -0,0 +1,23 @@
const express = require('express');
const app = express();
const PORT = process.env.PORT || 4000;
const db = require('./config/db');
app.listen(PORT, () => {
console.log(`Server On : http://localhost:${PORT}/`);
})
//const express = require('express');
//const path = require('path');
//const app = express();
//
//const http = require('http').createServer(app);
//http.listen(8080, function () {
// console.log('listening on 8080')
//});
//
//app.use(express.static( path.join(__dirname, 'public')))
//
//app.get('/',function(request, response){
// response.sendFile( path.join(__dirname, 'public/main.html'))
//})