These pages contain the raw-ish output of various experiments (think console output).
First, ensure MongoDB has been set-up (see previous log). Next, we need the CLI tools for Angular. We’ll Node that…
npm install -g @angular/cli
ng new application-name(this may take a while)
- Now if everything is working ok, we can hit the default
localhost:4200and see the default app
curl -O https://fastdl.mongodb.org/osx-ssl/mongodb-osx-ssl-x86_64-3.4.9.tgzfailed. File 200bytes!?
- Downloaded via:
- Unpacked into downloads, then realised this is much much easier via homebrew, which we have installed. So:
brew update(this takes a good 30 seconds)
brew install mongodb
- Created a new folder under
mongodis in path via
/usr/local/bin/mongod, so homebrew did its thing fine
ls ~/Projects/mongo/datato check with have the right path for mongo data (we just created)
mongo ~/Projects/mongo/data MongoDB shell version v3.4.9 connecting to: mongodb:///Users/shellbryson/Projects/mongo/data 2017-10-15T22:13:46.886+0100 E QUERY [thread1] Error: Failed to parse mongodb:// URL: mongodb:///Users/shellbryson/Projects/mongo/data : connect@src/mongo/shell/mongo.js:237:13 @(connect):1:6 exception: connect failed
- …failed because I forgot the dbpath param: mongod –dbpath
mongo --dbpath ~/Projects/mongo/data
Okay we now have MongoDB installed. Lets add some tools:
- Registered and downloaded MongoDB Compass with default options. Ran it, and it connected fine.