DEV Community

Discussion on: Build a CLI to crawl a web page with web-crawljs

Collapse
 
kayslaycode profile image
Badewa kayode

I don't understand the error. Send your config file so I can take a look at it.

Collapse
 
zoedsoupe profile image
Zoey de Souza Pessanha

Well, here's the project's repository: github.com/Mdsp9070/CLI-crawler

Thread Thread
 
kayslaycode profile image
Badewa kayode

It works on my machine. From the error above, it seems to be a connection error ECONNREFUSED.

Check the MongoDB server if it's running as expected. Also, check if the config contains the right credentials to connect to your local MongoDB server.

Thread Thread
 
zoedsoupe profile image
Zoey de Souza Pessanha

There's any tutorial on how to setup everything into he right way? Mongo's docs seems so confusing

Thread Thread
 
kayslaycode profile image
Badewa kayode

Yeah. Make sure ur MongoDB server is running first.

Take a look at Mongoose's docs mongoosejs.com/