firts commit
This commit is contained in:
23
server/server.js
Normal file
23
server/server.js
Normal 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'))
|
||||
//})
|
||||
Reference in New Issue
Block a user