Skip to content

Commit

Permalink
Inital Express server
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Traversy authored and Brad Traversy committed Jun 19, 2020
0 parents commit 996a7c5
Show file tree
Hide file tree
Showing 5 changed files with 1,993 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
14 changes: 14 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const express = require('express')
const dotenv = require('dotenv')

// Load config
dotenv.config({ path: './config/config.env' })

const app = express()

const PORT = process.env.PORT || 3000

app.listen(
PORT,
console.log(`Server running in ${process.env.NODE_ENV} mode on port ${PORT}`)
)
4 changes: 4 additions & 0 deletions config/config.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PORT = 3000
MONGO_URI = mongodb+srv:https://bradt1234:[email protected]/storybooks?retryWrites=true&w=majority
GOOGLE_CLIENT_ID = 167153388710-svqnu4246eq8igck6qbg1koonle9otdr.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET = DPnYlS4g52FyWJJggdGIh8RT
Loading

0 comments on commit 996a7c5

Please sign in to comment.