Files
KART_FRONT/server/server.js
2025-10-24 10:24:44 +09:00

23 lines
624 B
JavaScript

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'))
//})