From 76f6fa5ed7037eee3820f450c0c0847fe7c43544 Mon Sep 17 00:00:00 2001 From: Brian Marete Date: Thu, 13 Aug 2020 12:57:44 +0300 Subject: [PATCH 01/15] Create _config.js --- _config.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 _config.js diff --git a/_config.js b/_config.js new file mode 100644 index 000000000..da05b3cc8 --- /dev/null +++ b/_config.js @@ -0,0 +1,8 @@ +var config = {} + +config.mongoURI = { + production: 'mongodb+srv://:@gallery.wc344.mongodb.net/darkroom?retryWrites=true&w=majority', + development: 'mongodb+srv://:@gallery.wc344.mongodb.net/darkroom-dev?retryWrites=true&w=majority', + test: 'mongodb+srv://:@gallery.wc344.mongodb.net/darkroom-test?retryWrites=true&w=majority', +} +module.exports = config; From 6f5513a0d521b3b85616e721575ae3e271fefa7e Mon Sep 17 00:00:00 2001 From: Brian Marete Date: Thu, 13 Aug 2020 13:17:23 +0300 Subject: [PATCH 02/15] Update _config.js --- _config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/_config.js b/_config.js index da05b3cc8..23720eb7c 100644 --- a/_config.js +++ b/_config.js @@ -1,5 +1,6 @@ var config = {} +// Update to have your correct username and password config.mongoURI = { production: 'mongodb+srv://:@gallery.wc344.mongodb.net/darkroom?retryWrites=true&w=majority', development: 'mongodb+srv://:@gallery.wc344.mongodb.net/darkroom-dev?retryWrites=true&w=majority', From be123dd59373ea4964562e5b85cf224f4105c41b Mon Sep 17 00:00:00 2001 From: Gibwanjau <107396492+Gibwanjau@users.noreply.github.com> Date: Sat, 29 Mar 2025 18:54:58 +0300 Subject: [PATCH 03/15] Create README.md readme --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 000000000..8178c76d6 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +readme From 3cb6c557b03bce85c9b6ebcf9139a468a908f700 Mon Sep 17 00:00:00 2001 From: Gibwanjau <107396492+Gibwanjau@users.noreply.github.com> Date: Sun, 30 Mar 2025 14:07:55 +0300 Subject: [PATCH 04/15] mongo update --- _config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_config.js b/_config.js index 23720eb7c..3fc3da316 100644 --- a/_config.js +++ b/_config.js @@ -2,8 +2,8 @@ var config = {} // Update to have your correct username and password config.mongoURI = { - production: 'mongodb+srv://:@gallery.wc344.mongodb.net/darkroom?retryWrites=true&w=majority', - development: 'mongodb+srv://:@gallery.wc344.mongodb.net/darkroom-dev?retryWrites=true&w=majority', - test: 'mongodb+srv://:@gallery.wc344.mongodb.net/darkroom-test?retryWrites=true&w=majority', + production: 'mongodb+srv://gibwanjau0:@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', + development: 'mongodb+srv://gibwanjau0:@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', + test: 'mongodb+srv://gibwanjau0:@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', } module.exports = config; From bc53ffdd68b05ee7208add85415d2520135d98cf Mon Sep 17 00:00:00 2001 From: Gibwanjau <107396492+Gibwanjau@users.noreply.github.com> Date: Sun, 30 Mar 2025 14:22:21 +0300 Subject: [PATCH 05/15] mongo user update --- _config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_config.js b/_config.js index 3fc3da316..cc4e32325 100644 --- a/_config.js +++ b/_config.js @@ -2,8 +2,8 @@ var config = {} // Update to have your correct username and password config.mongoURI = { - production: 'mongodb+srv://gibwanjau0:@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', - development: 'mongodb+srv://gibwanjau0:@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', - test: 'mongodb+srv://gibwanjau0:@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', + production: 'mongodb+srv://gallery:Gallery12345@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', + development: 'mongodb+srv://gallery:Gallery12345@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', + test: 'mongodb+srv://gallery:Gallery12345@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', } module.exports = config; From b0195cc6191227eee2d76788c405935a8dd03553 Mon Sep 17 00:00:00 2001 From: Gibwanjau <107396492+Gibwanjau@users.noreply.github.com> Date: Sun, 30 Mar 2025 14:26:16 +0300 Subject: [PATCH 06/15] user --- _config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_config.js b/_config.js index cc4e32325..5650004e9 100644 --- a/_config.js +++ b/_config.js @@ -2,8 +2,8 @@ var config = {} // Update to have your correct username and password config.mongoURI = { - production: 'mongodb+srv://gallery:Gallery12345@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', - development: 'mongodb+srv://gallery:Gallery12345@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', - test: 'mongodb+srv://gallery:Gallery12345@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', + production: 'mongodb+srv://gallery:Gallery12345@gallery.wc344.mongodb.net/darkroom?retryWrites=true&w=majority', + development: 'mongodb+srv://gallery:Gallery12345@gallery.wc344.mongodb.net/darkroom-dev?retryWrites=true&w=majority', + test: 'mongodb+srv://gallery:Gallery12345@gallery.wc344.mongodb.net/darkroom-test?retryWrites=true&w=majority', } module.exports = config; From d2ad3c459d95ce83e9ca00a708dec6ec8370d949 Mon Sep 17 00:00:00 2001 From: Gibwanjau <107396492+Gibwanjau@users.noreply.github.com> Date: Sun, 30 Mar 2025 14:41:19 +0300 Subject: [PATCH 07/15] mongo --- _config.js | 6 +++--- server.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_config.js b/_config.js index 5650004e9..cc4e32325 100644 --- a/_config.js +++ b/_config.js @@ -2,8 +2,8 @@ var config = {} // Update to have your correct username and password config.mongoURI = { - production: 'mongodb+srv://gallery:Gallery12345@gallery.wc344.mongodb.net/darkroom?retryWrites=true&w=majority', - development: 'mongodb+srv://gallery:Gallery12345@gallery.wc344.mongodb.net/darkroom-dev?retryWrites=true&w=majority', - test: 'mongodb+srv://gallery:Gallery12345@gallery.wc344.mongodb.net/darkroom-test?retryWrites=true&w=majority', + production: 'mongodb+srv://gallery:Gallery12345@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', + development: 'mongodb+srv://gallery:Gallery12345@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', + test: 'mongodb+srv://gallery:Gallery12345@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', } module.exports = config; diff --git a/server.js b/server.js index 245027b19..60b2cd10d 100644 --- a/server.js +++ b/server.js @@ -8,8 +8,8 @@ let index = require('./routes/index'); let image = require('./routes/image'); // connecting the database -let mongodb_url = 'mongodb://localhost:27017/'; -let dbName = 'darkroom'; +let mongodb_url = 'mongodb+srv://gallery:Gallery12345@cluster0.dxryi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0'; +let dbName = 'galleryGibson_ip1'; mongoose.connect(`${mongodb_url}${dbName}`,{ useNewUrlParser: true , useUnifiedTopology: true }, (err)=>{ if (err) console.log(err) }); From 18026b4839cc75a55d68e9a908fe70a91c8ab59f Mon Sep 17 00:00:00 2001 From: Gibwanjau <107396492+Gibwanjau@users.noreply.github.com> Date: Sun, 30 Mar 2025 14:50:27 +0300 Subject: [PATCH 08/15] MILESTONE 2 --- views/index.ejs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/views/index.ejs b/views/index.ejs index c5b1c5693..729121a1b 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,6 +1,6 @@ - + @@ -12,7 +12,11 @@