Can't run the website locally
Closed this issue ยท 4 comments
CHR-onicles commented
pmessan commented
Hey,
So this error appears when your MongoDB server isn't running. The Node server is trying to connect and doesn't succeed, therefore the page can't load.
Things to check:
- Is MongoDB installed?
- Is the mongo daemon running? (You can check that with
pgrep mongod
if nothing is returned, then your daemon isn't running.) - Make sure you are in the main directory of the repo, and run
npm i
to install the dependencies. I'll add that to the readme
CHR-onicles commented
Hey,
I installed mongodb
and added it to my environment path
. Took care of the errors for now, but still the site does not launch in my browser.
It shows that mongod
is running in my terminal.
Also it seems pgrep
is a unix command no?... im on windows 10 btw.
Thanks in advance.
Edit: added link.
pmessan commented
No worries. This server does not automatically launch your browser. Just open your browser and type in localhost:3000
and you should see the site.
Cheers!
CHR-onicles commented
aww man... works now haha...thanks a lot ๐๐ผ