-
Notifications
You must be signed in to change notification settings - Fork 1k
Install API on macOS #19
Copy link
Copy link
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 mongodb-community@6.0
If you had it just follow the img instructions (so install xcode-select) and then launch again brew install mongodb-community@6.0
-
now you can check the install with
mongod --version -
and then run mongodb community with
brew services start mongodb-community@6.0
(to stop it :
brew services stop mongodb-community@6.0)
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 ! 👋
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
