pmessan/simple-blog

Can't run the website locally

Closed this issue ยท 4 comments

Followed the instructions in the README but still can't run the site locally.
(I installed nodemon with npm install -g nodemon btw)

Screenshot:
Seems its running, but does not launch in my browser.

image

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

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.

image

Thanks in advance.

Edit: added link.

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!

aww man... works now haha...thanks a lot ๐Ÿ‘๐Ÿผ