Showing
6 changed files
with
4 additions
and
11 deletions
Apikey.txt
deleted
100644 → 0
1 | -"https://maps.googleapis.com/maps/api/js?key=sAIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly" | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -16,8 +16,7 @@ mongoose.set('useCreateIndex', true); | ... | @@ -16,8 +16,7 @@ mongoose.set('useCreateIndex', true); |
16 | mongoose.set('useUnifiedTopology', true); | 16 | mongoose.set('useUnifiedTopology', true); |
17 | 17 | ||
18 | // Connect DB environment variable | 18 | // Connect DB environment variable |
19 | -const mongokey = require('./keys.json'); | 19 | +mongoose.connect('mongodb+srv://Mapmory_admin:admin@cluster0.ncnjj.mongodb.net/Project-Mapmory?retryWrites=true&w=majority'); |
20 | -mongoose.connect(mongokey.Mongokey); | ||
21 | 20 | ||
22 | // Store DB in the variable 'db' | 21 | // Store DB in the variable 'db' |
23 | var db = mongoose.connection; | 22 | var db = mongoose.connection; | ... | ... |
keys.json
deleted
100644 → 0
... | @@ -4,8 +4,7 @@ | ... | @@ -4,8 +4,7 @@ |
4 | "description": "", | 4 | "description": "", |
5 | "main": "index.js", | 5 | "main": "index.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | - "test": "echo \"Error: no test specified\" && exit 1", | 7 | + "test": "echo \"Error: no test specified\" && exit 1" |
8 | - "start" : "nodemon index.js" | ||
9 | }, | 8 | }, |
10 | "keywords": [], | 9 | "keywords": [], |
11 | "author": "", | 10 | "author": "", | ... | ... |
... | @@ -135,7 +135,7 @@ | ... | @@ -135,7 +135,7 @@ |
135 | 135 | ||
136 | <!-- Async script executes immediately and must be after any DOM elements used in callback. --> | 136 | <!-- Async script executes immediately and must be after any DOM elements used in callback. --> |
137 | <script | 137 | <script |
138 | - src="./key1.js" | 138 | + src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly" |
139 | async | 139 | async |
140 | ></script> | 140 | ></script> |
141 | </body> | 141 | </body> | ... | ... |
... | @@ -141,9 +141,8 @@ | ... | @@ -141,9 +141,8 @@ |
141 | 141 | ||
142 | 142 | ||
143 | <!-- Async script executes immediately and must be after any DOM elements used in callback. --> | 143 | <!-- Async script executes immediately and must be after any DOM elements used in callback. --> |
144 | - | ||
145 | <script | 144 | <script |
146 | - src="https://maps.googleapis.com/maps/api/js?key=sAIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly" | 145 | + src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly" |
147 | async | 146 | async |
148 | ></script> | 147 | ></script> |
149 | 148 | ... | ... |
-
Please register or login to post a comment