MEAN Stack – Modelling with Mongoose – Day 10

The MEAN Challenge Continues!

This video is part of the 30 Day MEAN Stack Honolulu Challenge

In this video we’ll take a look at the Mongoose package, and set up our customers model that we’ll use to create our customers MongoDB collection.

We look at:
– The Customers Pages, with a focus on the create customer storyboard
– The Mongoose website
– The Mongoose documents relating to ‘Defining your schema’
– Setting up our Customers model, based on our storyboard

The functional design post mentioned in this video with the use case, storyboard and wireframes can be found here: Home Page Design.

2 Comments

Let me know what you think

  • konstantinstepanenko
    Reply

    Hello Shristi!
    like your tutorials a lot! Can you please help with one little question.
    For example: if the customer will have an array of staff that he has bought.. How will we add this into mongoose model?
    ar CustomerSchema = new Schema({
    name: {
    type:String,
    required:1
    }

    ….

    list: [{
    id: {
    type: String,
    default: ”,
    required: ‘Please fill id’,
    trim: true},

    category: {
    type: String,
    default: ”,
    required: ‘Please fill Category name’,
    trim: true},

    price: {
    type: String,
    default: ”,
    required: ‘Please fill Category name’,
    trim: true}
    }]

    and can we mange this list too?
    give me a tip please.. can’t find any info about it.

    Thank’s in advase!