Skip to content

Commit

Permalink
added registration..
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-gautam committed Jan 26, 2020
1 parent 6b0898f commit 5f38f92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const MONGODB_URI = "mongodb+srv:https://nik:[email protected]/sos?retryW

const app = express();

var port = process.env.PORT || 6900

app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({
Expand All @@ -27,7 +29,7 @@ mongoose.connect(MONGODB_URI, {
useUnifiedTopology: true
}).then(result => {
console.log("DB Connected!!");
app.listen(6900);
app.listen(port);
}).catch(err => {
console.log(err);
});

0 comments on commit 5f38f92

Please sign in to comment.