Sunday, July 16, 2017

Sound Cloud API


             Sounds (in the API these are called tracks) are core to SoundCloud. Sound Cloud  API give we the ability to upload, manage and share sounds on the web. our app can take an audio file and upload it to a user's SoundCloud account.
that enables its users to upload, record, promote, and share their originally-created sounds.

Mongoose


 Mongoose acts as a front end to MongoDB, an open source NoSQL database that uses a document-oriented data model. A “collection” of “documents”, in a MongoDB database, is analogous to a “table” of “rows” in a relational database.

       why we wrote Mongoose.

 var mongoose= require ('mongoose');
mongoose.connect('mongodb://localhost/test');

var cat = mongoose.model('cat', {name: string});

var kitty = new Cat({ name: 'Zildjian' });
kitty.save(function (err) {
  if (err) {
    console.log(err);
  } else {
    console.log('meow');
  }
});
 
Mongoose provides a straight-forward, schema-based solution to model your application data. It includes built-in type casting, validation, query building, business logic hooks and more, out of the box.
 

No comments:

Post a Comment