|
const DB = process.env.DATABASE_LOCAL; |
It's seems that to have a default database connection string can help to run this server without getting any initial error.
my suggestion is to make this mentioned code line like this
const DB = process.env.DATABASE_LOCAL || 'mongodb://localhost:27020/codehub';
So that people can understand where he/she have to change.
CodeHub-Backend/server.js
Line 14 in 593436f
It's seems that to have a default database connection string can help to run this server without getting any initial error.
my suggestion is to make this mentioned code line like this
So that people can understand where he/she have to change.