mirror of
https://github.com/kevin-DL/complete-node-bootcamp.git
synced 2026-01-15 20:54:53 +00:00
Initial commit 🚀
This commit is contained in:
9
4-natours/after-section-06/server.js
Normal file
9
4-natours/after-section-06/server.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const dotenv = require('dotenv');
|
||||
const app = require('./app');
|
||||
|
||||
dotenv.config({ path: './config.env' });
|
||||
|
||||
const port = process.env.PORT || 3000;
|
||||
app.listen(port, () => {
|
||||
console.log(`App running on port ${port}...`);
|
||||
});
|
||||
Reference in New Issue
Block a user