Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit b04a949

Browse files
committed
Spaces, another TODO
1 parent f3edc6d commit b04a949

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

en/mongodb.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ As you read through this, I encourage you to play with MongoDB to replicate what
5050

5151
3. Create a new text file in the `bin` subfolder named `mongodb.config`.
5252

53-
4. Add a single line to your mongodb.config:
54-
`dbpath=PATH_TO_WHERE_YOU_WANT_TO_STORE_YOUR_DB_FILES`
53+
4. Add a single line to your mongodb.config:
54+
`dbpath=PATH_TO_WHERE_YOU_WANT_TO_STORE_YOUR_DB_FILES`
5555
For example, on Windows use `dbpath=c:\mongodb\data` and on Linux `dbpath=/var/lib/mongodb/data`.
5656

5757
5. Make sure the `dbpath` you specified exists.
@@ -60,13 +60,13 @@ As you read through this, I encourage you to play with MongoDB to replicate what
6060

6161
As an example for Windows users, if you extracted the downloaded file to `c:\mongodb\` and you created `c:\mongodb\data\` then within `c:\mongodb\bin\mongodb.config` you would specify `dbpath=c:\mongodb\data\`. You could then launch `mongod` from a command prompt via `c:\mongodb\bin\mongod --config c:\mongodb\bin\mongodb.config`.
6262

63-
Feel free to add the `bin` folder to your path to make all of this less verbose. MacOSX and Linux users can follow almost identical directions. The only thing you should have to change are the paths.
63+
Feel free to add the `bin` folder to your path to make all of this less verbose. MacOSX and Linux users can follow almost identical directions. The only thing you should have to change are the paths. TODO (brew on Mac?)
6464

65-
Hopefully you now have MongoDB up and running. If you get an error, read the output carefully - the server is quite good at explaining what's wrong.
65+
Hopefully you now have MongoDB up and running. If you get an error, read the output carefully - the server is quite good at explaining what's wrong.
6666

6767
You can now launch `mongo` (without the *d*) which will connect a shell to your running server. Try entering `db.version()` to make sure everything's working as it should. Hopefully you'll see the version number you installed.
6868

69-
If you can't, or don't want to install `mongod` locally, you can sign up for a free MongoDB cluster in [Atlas](https://www.mongodb.com/cloud/atlas) - follow the [getting started directions](https://docs.atlas.mongodb.com/getting-started/) there to connect to your cluster.
69+
If you can't, or don't want to install `mongod` locally, you can sign up for a free MongoDB cluster in [Atlas](https://www.mongodb.com/cloud/atlas) - follow the [getting started directions](https://docs.atlas.mongodb.com/getting-started/) there to connect to your cluster.
7070

7171
If you prefer GUI to command line shell, you can use [MongoDB Compass](URL TODO), an open source GUI for MongoDB.
7272

@@ -562,7 +562,7 @@ The message from this chapter is that MongoDB, in most cases, can replace a rela
562562
## Aggregation Pipeline ##
563563
Aggregation pipeline gives you a way to transform and combine documents in your collection. You do it by passing the documents through a pipeline that's somewhat analogous to the Unix "pipe" where you send output from one command to another to a third, etc.
564564

565-
The simplest aggregation you are probably already familiar with is the SQL `group by` expression. We already saw the simple `count()` method, but what if we want to see how many unicorns are male and how many are female?
565+
The simplest aggregation you are probably already familiar with is the SQL `group by` expression. We already saw the simple `count()` method, but what if we want to see how many unicorns are male and how many are female?
566566

567567
db.unicorns.aggregate([{$group:{_id:'$gender',
568568
total: {$sum:1}}}])

0 commit comments

Comments
 (0)