small edits
This commit is contained in:
0
client/.env.example
Normal file
0
client/.env.example
Normal file
4
client/.gitignore
vendored
4
client/.gitignore
vendored
@@ -15,3 +15,7 @@
|
|||||||
.env.test.local
|
.env.test.local
|
||||||
.env.production.local
|
.env.production.local
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
CONNECTION_URL = "MongoDB connection URL"
|
MONGO_URI = "MongoDB connection URL"
|
||||||
PORT = "4 digits"
|
|
||||||
4
server/.gitignore
vendored
4
server/.gitignore
vendored
@@ -15,3 +15,7 @@
|
|||||||
.env.test.local
|
.env.test.local
|
||||||
.env.production.local
|
.env.production.local
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ app.use(express.urlencoded({ limit: '1mb', extended: false })); // url parser
|
|||||||
app.use(morgan('common'));
|
app.use(morgan('common'));
|
||||||
|
|
||||||
// configure db:
|
// configure db:
|
||||||
// for "atlas" edit CONNECTION_URL in -> .env file || for "community server" edit <dbname>
|
// for "atlas" edit MONGO_URI in -> .env file || for "community server" edit <dbname>
|
||||||
const CONNECTION_URL = process.env.CONNECTION_URL || 'mongodb://localhost:27017/<dbname>';
|
const CONNECTION_URL = process.env.MONGO_URI || 'mongodb://localhost:27017/<dbname>';
|
||||||
const DEPRECATED_FIX = { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true };
|
const DEPRECATED_FIX = { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true };
|
||||||
|
|
||||||
// connect to db
|
// connect to db
|
||||||
|
|||||||
Reference in New Issue
Block a user