Answer the question
In order to leave comments, you need to log in
How to run mongodb via npm?
Good afternoon! The question is, how is it right or easier to run mongodb locally?
I am training in writing API on a node. Every time I run the project, I constantly need to run mongodb manually in the console. Here is such a command:
"C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe"
npm run dev
and I still had the database running? Or some other way.
Answer the question
In order to leave comments, you need to log in
What if, for example, I wrote the command: npm run dev and I still had the database running?Well, so do it .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question