How to provide code samples for nodejs and mongoose

79 Views Asked by At

What is the best way to provide code samples for my NodeJS application that uses mongo via mongoose.

I am dealing with a problem where I want to post a working example of some schemas & models that requires DB access.

I was hoping for something like jsfiddle but could not quite figure out how to use that for what I wanted.

Yes, I'm a noob... Thanks!

1

There are 1 best solutions below

1
On BEST ANSWER

Why don't you try the reliable service of c9.io?

I haven't tried using Mongoose there, but it shouldn't be much of a magic.