#Zza Node Mongo The "Zza Node Mongo" sample app is a single page application (SPA) built with Breeze, Angular, Node, and MongoDB.
- Node.js >=0.10
- MongoDb >= v.2.6
The zza-mongo-database.zip file is the Zza application's MongoDB database. Extract it into the db folder.
You should see three new files in the db folder: "zza.0", "zza.1", and "zza.ns"
You only have to do this once.
-
Open a command/terminal window.
-
Navigate to the Zza-Node-Mongo directory.
-
Use npm to install the dependent packages enumerated in the package.json file:
npm install
-
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.
Every time you run the application you must first launch two servers: the MongoDB server and the Zza application's node/express server.
-
Open a new command prompt window.
-
Start MongoDB by typing
mongod --dbpath db
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.
-
Open a new command/terminal window.
-
Navigate to the Zza-Node-Mongo directory.
-
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.
Open localhost:3000 in a web browser to run the Zza application.
- Initial release.
- Demonstrates fundamental characteristics of a MongoDB app accessed with Breeze.
- Maintainable w/o any Microsoft assets at all, neither code nor development tools.