mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-08 16:17:37 +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:
committed by
Piotr Błażejewicz (Peter Blazejewicz)
parent
69124f2765
commit
d07240fbac
10
README.md
10
README.md
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user