Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wardbell committed Nov 19, 2014
1 parent 6706c29 commit 44a7346
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions zza-node-mongo/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,24 @@ The "Zza Node Mongo" sample app is a single page application (SPA) built with Br

### Extract the database

Extract the Zza application's MongoDB database in *zza-mongo-database.zip* to your MongoDB data directory.
The *zza-mongo-database.zip* file is the Zza application's MongoDB database. Extract it into the *db* folder.

>The default location per MongoDB installation instructions is *C:\data*. Your location may be different.
You should see three new files in the *db* folder: "zza.0", "zza.1", and "zza.ns"

You only have to install this database once.
You only have to do this once.

### Install dependent node modules

1. Open a command prompt window.
1. Open a command/terminal window.

2. Navigate to the *Zza-Node-Mongo* directory.
1. Navigate to the *Zza-Node-Mongo* directory.

3. Use npm to install the following three modules:
1. Use npm to install the dependent packages enumerated in the *package.json* file:

npm install

npm install mongodb
npm install express
npm install breeze-mongodb

Confirm that all of them ran without error (warnings are ok). You can close this window when you're done.
1. Confirm that all of them ran without error (warnings are ok). You can close this window when you're done.

You only install these modules once.

Expand All @@ -38,28 +36,30 @@ You only install these modules once.

1. Open a new command prompt window.

2. Navigate to the *mongodb/bin* directory.
1. Start MongoDB by typing

>The default location per MongoDB installation instructions is *C:\mongodb\bin*. Your location may be different.
mongod --dbpath db

3. Type **mongod** to start MongoDB.
This launches the MongoDb server pointing to the folder with the zza database (see db installation above).

>Do not close this window. Closing the window will end the MongoDB process.

4. Open a new command prompt window.
1. Open a new command/terminal window.

5. Navigate to the *Zza-Node-Mongo* directory.
1. Navigate to the *Zza-Node-Mongo* directory.

6. Type **node server** to start the Node.js/Express server.
7.
>Do not close this window. Closing the window will end the Express process.
1. Start the app's node/express server by typing

node server

>Do not close this window. Closing the window will end the node/express process.

### Run Zza

Open **localhost:3000** in a web browser to run the Zza application.
Open [**localhost:3000**](http://localhost:3000) in a web browser to run the Zza application.

## Release 0.8.0
* Initial release.
* Demonstrates fundamental characteristics of a MongoDB app.
* Demonstrates fundamental characteristics of a MongoDB app accessed with Breeze.
* Maintainable w/o any Microsoft assets at all, neither code nor development tools.
* Demonstrates more sophisticated user interaction paradigms than other Breeze samples. (It actually looks like a SPA.)

0 comments on commit 44a7346

Please sign in to comment.