First install mongo from https://www.mongodb.com/try/download/shell
install mongo with mongo compass
you need to create env inside computer so you can call mongod command from any terminal
on windows is on advanced windows settings -> Environment Variables -> system path field 
and double click on path -> new -> set up the path to the mongo installation C:/Program Files/MongoDb/5.0/bin
after create folder inside C: named data and inside another one called db
open IDE and on new terminal write ```mongo``` after that write ```show dbs``` to se the databases
after that ```use admin``` to create admin db and than 
```
db.createUser(
... {
... user: "someUsername",
... pwd: "somePassword",
... roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
... }
... )
 ```
restart terminal, set up environmentals inside .env file for the new username and password
and write ```mongo -u "someUsername" -p "somePassword"```
you can check with ```use admin``` -> ```show users``` to see the user
on new termial write ```mongod --auth --port 27017 --dbpath /C:/data/db```