Skip to content

Commit d7d4d49

Browse files
committed
Initialized Express app, configured dev env
1 parent 1e0e77f commit d7d4d49

File tree

4 files changed

+1001
-3
lines changed

4 files changed

+1001
-3
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
.env

index.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
console.log('Hello World')
1+
const express = require("express");
2+
const colors = require("colors");
3+
const dotenv = require("dotenv");
4+
const morgan = require("morgan");
5+
6+
// Dev environment configuration
7+
morgan("tiny");
8+
dotenv.config();
9+
10+
// Initialize app
11+
const app = express();
12+
13+
const PORT = process.env.PORT || 3000;
14+
app.listen(PORT, () => console.log(`Listening on PORT: ${PORT}`.blue));

0 commit comments

Comments
 (0)