Skip to content

Instantly share code, notes, and snippets.

View Scott-Atkinson's full-sized avatar

Scott Oviedo-Atkinson Scott-Atkinson

  • Melbourne
  • 17:57 (UTC +11:00)
View GitHub Profile

Overview

Here you will find instructions for importing the datasets for M001: MongoDB Basics into a locally running MongoDB deployment.

Datasets

All datasets are provided in Amazon S3 in a single zip file (243 MB zipped; 1.5 GB unzipped). The files were created with the mongodump command. They may be imported into your MongoDB deployment using mongorestore. Note that these datasets include the indexes necessary to support example queries and labs used in M001. The datasets included are as follows.

@Scott-Atkinson
Scott-Atkinson / angular2-node.ts
Last active February 20, 2017 08:19
Angular2 call node.js function located on different port.
// Angular2 project running under port 4200
// Angular2 - a service, nothing strange just a simple service which has the following in it.:
// Response is a custom model, you can change this to whatever you like.
// You can also subscribe to this method and wait for the http call to finish.
deleteFromNode(id: string): Observable<Response> {
return this.http.post(`http://localhost:3000/delete?id=${id}`, null, null).map(res => res.json());
}