This is an app built on the MEAN Stack while following along with the "Firing a Tracer Bullet", "Anchor Links, Routes, and Medals", and "Adding New Medals" screencasts concluding codeschool.com's MEAN Stack path:
- MongoDB
- Express
- Angular
- Node.js
- Install the following:
nodejs
mongodb
mongodb-tools
, which is needed for itsmongoimport
util for DB seeding- Run
$ npm install
from inside this project root to resolve dependencies - Seed the database by running the following from inside the project root:
$ mongoimport --db olympics-dev --collection sports --type json --file server/sports-seed.json --jsonArray --drop
- Run the mongod server from anywhere:
$ mongod
- Run the node server by going to the project root and running:
$ node server/app.js
- A status should display confirming that it's
Listening on 8181
- Another status should confirm that it is
Connected to Mongo
. - Go to
http://localhost:8181/
in the browser to render the app
- Run
$ npm run watch
in the project root to start transpile watch. This command will read files underclient/src
and generate a single file underclient/dist/bundle.js
, which is included by index.html