Thalasar Ventures

Getting started with MongoDB and NoSQL in .NET and C#

The world of data offers new choices and MongoDB is the most popular alternative to SQL databases today. In this one hour webinar, we’ll look at the reasons …
Video Rating: 4 / 5

This tutorial covers how to work with a MongoDB database using Node.js, Express.js, & Mongoose. Node.js and MongoDB are simply made for each other. Mongoose …
Video Rating: 4 / 5

Both comments and pings are currently closed.

31 Responses to “Getting started with MongoDB and NoSQL in .NET and C#”

  1. Colonel JCD says:

    if you have to do a AsQueryable on the whole collection for every query, it
    will get all the items from the db, and then apply the Linq query.. where
    sql only returns the items that satisfy your query.. how is that faster of
    more performant than sql? Also given the fact that sql caches your query
    execution plan..

  2. debit256 says:

    fucking micheal

  3. Kaakh Typer says:

    stop drinking tea or whatever u drink while recording video please. it’s
    kinda rude behavior from u sir.
    thanks for video.

  4. Milan Hakaj says:

    Awesome video, thank you.

  5. Null McNull says:

    Great presentation, thanks!

  6. Young Liao says:

    Great!!!

  7. Bill Wheaton says:

    Some thoughts: The code in app.js is for express 3.0, not 4.0. if you
    create a new app in express 4.0, it stubs it out differently.
    Mongoose does not install bson correctly in windoze. It seems to be
    looking for the python executable which I don’t have, so it uses the “pure
    js” version instead. don’t know if that matters or not.
    You need a chrome plugin to view the json nicely (mentioned below, and I
    really recommend it) – otherwise be satisfied with the one-liner.
    Load mongo using a config file and have it’s dbpath point to your
    develoment drive/path
    Your mongoose.connect string in app.js should be
    “mongodb://localhost:27017/db”
    the mongo admin console is where you change the db with “set db” – unless
    you like the default db, “test”. Once you change the database, then you use
    db.users.insert({_id:ObjectId(),name:”John Travolta”}) to get users in
    there.
    Then you us use
    db.posts.insert({_id:ObjectId(),content:”stayin’
    alive”,user:ObjectId(-id-created-above-goes-here)} to insert new post
    content for travolta’s post.

  8. Parker Hegstrom says:

    Great tutorial! One question. When I do res.send(users), it prints out the
    json response, but not in an easily readable format like your browser
    displays it in this video (mine is just black and white json text). I’m
    using express 4.x with bodyParser module. Any other settings I need to
    configure?

  9. Bill Wheaton says:

    I was not able to get the posts to display. There is something about the
    user element of the postsSchema that keeps posts from being found:
    user: {
    type: Schema.ObjectId,
    ref: ‘users’
    }
    If I leave that out of postsSchema, then it finds the asked for record(s).
    But then I can’t do the .populate() without it. 

  10. Aleksandar Grbic says:

    Me, my wife and John Travolta, hahahah man, you are genius :D…
    Great tutorial, keep up the great work :)!

  11. sgtsnakeeyes11 says:

    his other tut was better, this time he did things before hand which threw
    me off like creating the database and the users, etc

  12. Saagar Varu says:

    What Sublime skin is that? lol

  13. Musashi Miyamoto says:

    Thanks. very nice. How you save the collections in mongodb?
    One object to USERS and another objects to POSTS? Or you saved users and
    posts in the same object collections?

  14. answerOfstupids says:

    do you have a more thorough series for expressjs, and templating.

  15. Bill Wheaton says:

    I am really not sure how that {path:’user’} thing works with the .populate.
    is ‘path’ a keyword that .populate looks for?

  16. Eric Coffman says:

    Can you share the package.json? Thx

  17. Anthony Pipkin says:

    Why use `fs` to include all the models instead of setting up a `models.js`
    or an index file under the models directory and just `require(‘models’)`? 

  18. Guy Madmon says:

    I think im confused but you didnt explain how to add new data to the
    database. So.. how? :D

  19. ownedbub says:

    What are your thoughts on meteor.js?

  20. FAIZ AHMED says:

    +LearnCode.academy
    I recently learned how to deploy node.js apps using heroku or nodester etc.
    I was wondering if you can do a video on how to deploy database driven apps
    by installing mongodb or mysql database on remote server using ssh or
    something like that! Please I’m waiting for it!!!

  21. Saiteja Parsi says:

    The tutorial is cool. I have a doubt. post scema has only “content: string”.
    But when read and sent to the client. it displays: _id, content(obvious)
    and user(?) at 4:07
    My doubt is: we did not define user property in post schema but it did
    return it when requested for /posts.
    Please help me.

  22. Jeremie Shaker says:

    You say it’s running on the server 55.55.55.5 but where does that come
    from? Is there any setup we need prior to this video?

  23. thedogburglar says:

    How do you actually do things with the JSON data you have? I can’t do
    “console.log(users.username)” in the callback function, it’s just saying
    “undefined”.

  24. V de Vatman says:

    why the ‘~’ in ~filename.indexof(‘.js’) ?

  25. Mark Anderson says:

    This is missing loads of stuff, liek starting mopngod, inserting users and
    lots of other stuff. doesn;t work period

  26. Aron Magyari says:

    “Everybody wants to work with models for a living”!!!
    HAHAHA

  27. Alex Shpak says:

    Hi. Can you tell me why you use ~ before ~filename.
    Thnx

  28. Ferdinand Mütsch says:

    great tutorial!!

  29. Jeremie Shaker says:

    And where do your three users come from?

  30. LizardanNet . says:

    is ExpressJS an MVC framework?

  31. Wolf Forest says:

    Thanks)