Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.51 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.51 KB

Olympics MEAN App

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

Running on Localhost

  1. Install the following:
  2. nodejs
  3. mongodb
  4. mongodb-tools, which is needed for its mongoimport util for DB seeding
  5. Run $ npm install from inside this project root to resolve dependencies
  6. Seed the database by running the following from inside the project root:
  7. $ mongoimport --db olympics-dev --collection sports --type json --file server/sports-seed.json --jsonArray --drop
  8. Run the mongod server from anywhere: $ mongod
  9. Run the node server by going to the project root and running: $ node server/app.js
  10. A status should display confirming that it's Listening on 8181
  11. Another status should confirm that it is Connected to Mongo.
  12. Go to http://localhost:8181/ in the browser to render the app

Developing

  1. Run $ npm run watch in the project root to start transpile watch. This command will read files under client/src and generate a single file under client/dist/bundle.js, which is included by index.html