FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stranger-things-api/seed.js at database-model · api-tutorial/stranger-things-api · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
api-tutorial
/
stranger-things-api
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
9
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
stranger-things-api
/
seed.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (8 loc) · 309 Bytes
Breadcrumbs
stranger-things-api
/
seed.js
Copy path
File metadata and controls
9 lines (8 loc) · 309 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
require
(
'dotenv'
)
.
config
(
)
;
require
(
'./lib/utils/connect'
)
(
)
;
const
scrapeData
=
require
(
'./scrapers/infoScraper'
)
;
const
Character
=
require
(
'./lib/Models/Character'
)
;
const
mongoose
=
require
(
'mongoose'
)
;
scrapeData
(
)
.
then
(
chars
=>
Character
.
create
(
chars
)
)
.
finally
(
(
)
=>
mongoose
.
connection
.
close
(
)
)
;
Back
|
FazBrowse Home
|
New Git URL