Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 937 Bytes

INSTALL DB.md

File metadata and controls

55 lines (36 loc) · 937 Bytes

Installing MongoDB

Windows and Linux:

Download MongoDB from official website.

For MacOS:

Use Brew to download MongoDB:

Please make sure that you have HomeBrew installed on your MacOS

Query commands below on terminal:

brew tap mongodb/brew
brew install mongodb-community@5.0

MongoDB is installed on your computer.

Check the version:

mongod --version

Start the server:

brew services start mongodb-community@5.0

Log into admin panel

mongosh

Query this command to see your running port:

db.getMongo()

By default, it is: 27017

Copy your port info and paste it to MONGO_URI varible under src/config.py

ProdConfig class is for production environment and TestingConfig is for testing environment.

Your database configurations are ready!