#Zza Node Mongo The "Zza Node Mongo" sample app is a single page application (SPA) built with Breeze, Angular, Node, and MongoDB.
- Node.js
- MongoDB
Extract the Zza application's MongoDB database in zza-mongo-database.zip to your MongoDB data directory.
The default location per MongoDB installation instructions is C:\data. Your location may be different.
You only have to install this database once.
-
Open a command prompt window.
-
Navigate to the Zza-Node-Mongo directory.
-
Use npm to install the following three modules:
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.
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.
-
Navigate to the mongodb/bin directory.
The default location per MongoDB installation instructions is C:\mongodb\bin. Your location may be different.
-
Type mongod to start MongoDB.
Do not close this window. Closing the window will end the MongoDB process.
-
Open a new command prompt window.
-
Navigate to the Zza-Node-Mongo directory.
-
Type node server to start the Node.js/Express server.
-
Do not close this window. Closing the window will end the Express process.
Open localhost:3000 in a web browser to run the Zza application.
- Initial release.
- Demonstrates fundamental characteristics of a MongoDB app.
- 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.)
- Makes better use of Angular than other Breeze + Angular samples.