Skip to content

Install API on macOSΒ #19

@j0j032

Description

@j0j032

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:

  1. Follow this link for complete instructions https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/
  2. 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:

  1. brew tap mongodb/brew

  2. brew install [email protected]

⚠️ like me, you can have this error:

image

If you had it just follow the img instructions (so install xcode-select) and then launch again brew install [email protected]

  1. now you can check the install with mongod --version

  2. 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:

  1. npm i
  2. add MongoDB NodeJS Driver npm install mongodb --save
  3. Start your local server npm run dev:server
  4. Get the populate database npm run populate-db

✨ Your Api should be ready πŸ˜ƒ

πŸ‘‰ http://localhost:3001/api-docs/

Hope it helps ! πŸ‘‹

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions