.
This commit is contained in:
5
backend/config.js
Normal file
5
backend/config.js
Normal file
@@ -0,0 +1,5 @@
|
||||
var config = {};
|
||||
|
||||
config.PORT = 3000;
|
||||
|
||||
module.exports = config;
|
||||
6
backend/server.js
Normal file
6
backend/server.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const express = require('express');
|
||||
const config = require('./config');
|
||||
|
||||
const app = express();
|
||||
|
||||
app.listen(config.PORT, ()=>{console.log('Server running on port ' + config.PORT)});
|
||||
Reference in New Issue
Block a user