Merge unrelated histories
This commit is contained in:
11
Templates/backend/index.js
Normal file
11
Templates/backend/index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
//Standart Einstiegspunkt für die App"
|
||||
const app = require('express')();
|
||||
require('dotenv').config();
|
||||
const NODE_ENV = process.env.NODE_ENV || 'dev';
|
||||
const Port = NODE_ENV === "production" ? parseInt(process.env.Port) || 507 : 2210
|
||||
|
||||
|
||||
|
||||
app.listen(Port , () => {
|
||||
console.log(`Server läuft auf Port ${Port}`)
|
||||
})
|
||||
Reference in New Issue
Block a user