Skip to content

AllenFang/mongoskin-CRUD-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongoskin-CRUD-sample

It's a CRUD demo for Mongoskin with Mocha testing.

Install

$ git clone https://github.com/AllenFang/mongoskin-CRUD-sample.git
$ cd mongoskin-CRUD-sample
$ npm install

After installation, you can modify the db.js to match your MongoDB connection url

Run

$ npm test

This example perform a "Book" model, in the following is a Book document

{
      name: "Book Name",
      price: 10,
      year: 2000,
      publisher:{
        name: "Publisher2",
        tel: "333-159434"
      },
      keywords: ["Sample", "Book"],
      author:[
        {name: "Allen", mail: "allen@mail.com"}
      ]
}

About

It's a CRUD demo for Mongoskin with Mocha testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published