#Fast Times with Mongo Fast Times with Mongo is a single page application (SPA) built with MongoDB, Node.JS, Breeze and AngularJS
- Node.js
- MongoDB
Extract the application's MongoDB database in Fast-times-mongo-database.zip to your MongoDB data directory.
OR
Create an empty database.
The default location per MongoDB installation instructions is /data/db. Your location may be different.
You only have to install this database once.
-
Open a terminal
-
Navigate to the Fast-Times 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 application's node/express server.
-
Open a new command prompt window.
-
Start MongoDB by typing sudo mongod in a terminal window. (Make sure the directory /data/db/ exists or create it first)
Do not close this window. Closing the window will end the MongoDB process.
-
Open a new command prompt window.
-
Navigate to the Fast-Times 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 application.
- Initial release.
- Demonstrates fundamental characteristics of a MongoDB app.
- 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.