1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 14:47:28 +00:00

📚 Updated readme me to instruct to create Mongo db directory under the Mac OS

Document use of the home directory on macOS 10.15 and above
Thanks to @memasdeligeorgakis
This commit is contained in:
Memas Deligeorgakis
2019-10-18 23:15:54 +02:00
committed by Piotr Błażejewicz (Peter Blazejewicz)
parent 69124f2765
commit d07240fbac

View File

@@ -51,10 +51,18 @@ npm install
sudo mkdir -p /data/db
# give the db correct read/write permissions
sudo chmod 777 /data/db
# starting from macOS 10.15 even the admin cannot create directory at root
# so lets create the db diretory under the home directory.
mkdir -p ~/data/db
# user account has automatically read and write permissions for ~/data/db.
```
- Start your mongoDB server (you'll probably want another command prompt)
```
```bash
mongod
# on macOS 10.15 or above the db directory is under home directory
mongod --dbpath ~/data/db
```
- Build and run the project
```