-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Do you struggle to install the API on macOS ?
If you have the error [nodemon] app crash... you probably didn't install MongoDB Community Edition.
And don't worry if the mongo --version is not working....
What I did to fix the error:
- Follow this link for complete instructions https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/
- If you don't have home brew package manager installed (global) then: https://brew.sh/index_fr
So once brew is installed, in your macOS terminal: you can run:
-
brew tap mongodb/brew -
brew install [email protected]
If you had it just follow the img instructions (so install xcode-select) and then launch again brew install [email protected]
-
now you can check the install with
mongod --version -
and then run mongodb community with
brew services start [email protected]
(to stop it :
brew services stop [email protected])
Now, you can clone the repo and:
npm i- add MongoDB NodeJS Driver
npm install mongodb --save - Start your local server
npm run dev:server - Get the populate database
npm run populate-db
β¨ Your Api should be ready π
π http://localhost:3001/api-docs/
Hope it helps ! π
SahibSethiDH, CeciliaBdev, WillemJou, sensologica, Ben-oDesign and 2 morekidereo and Ben-oDesign
Metadata
Metadata
Assignees
Labels
No labels
