Toggle navigation
Toggle navigation
This project
Loading...
Sign in
임태민
/
Mapmory
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
홍지윤
2021-06-04 20:25:43 +0900
1
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b63299bdd64f20f52214e1a0d24c42cba418adc5
b63299bd
1 parent
fe10ad26
api key conceal
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
4 deletions
Apikey.txt
index.js
keys.json
package.json
views/partials/gmap.ejs
views/partials/showgmap.ejs
Apikey.txt
0 → 100644
View file @
b63299b
"https://maps.googleapis.com/maps/api/js?key=sAIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
\ No newline at end of file
index.js
View file @
b63299b
...
...
@@ -16,7 +16,8 @@ mongoose.set('useCreateIndex', true);
mongoose
.
set
(
'useUnifiedTopology'
,
true
);
// Connect DB environment variable
mongoose
.
connect
(
'mongodb+srv://Mapmory_admin:admin@cluster0.ncnjj.mongodb.net/Project-Mapmory?retryWrites=true&w=majority'
);
const
mongokey
=
require
(
'./keys.json'
);
mongoose
.
connect
(
mongokey
.
Mongokey
);
// Store DB in the variable 'db'
var
db
=
mongoose
.
connection
;
...
...
keys.json
0 → 100644
View file @
b63299b
{
"Mongokey"
:
"mongodb+srv://Mapmory_admin:admin@cluster0.ncnjj.mongodb.net/Project-Mapmory?retryWrites=true&w=majority"
}
\ No newline at end of file
package.json
View file @
b63299b
...
...
@@ -4,7 +4,8 @@
"description"
:
""
,
"main"
:
"index.js"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"start"
:
"nodemon index.js"
},
"keywords"
:
[],
"author"
:
""
,
...
...
views/partials/gmap.ejs
View file @
b63299b
...
...
@@ -135,7 +135,7 @@
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<script
src=
"
https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly
"
src=
"
./key1.js
"
async
></script>
</body>
...
...
views/partials/showgmap.ejs
View file @
b63299b
...
...
@@ -141,8 +141,9 @@
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<script
src=
"https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
src=
"https://maps.googleapis.com/maps/api/js?key=
s
AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly"
async
></script>
...
...
홍지윤
@2017101322
2021-06-04 11:26:04 UTC
Mentioned in commit
edd39c9a
Please
register
or
login
to post a comment