SchEMO

  • Create an express server.
  • Create A mongoose Schema for emo musical groups.
  • The schema should be able to handle and object like this example.
{
   name: "The long hairs", 
   members: [
      {
         name: "Billy Cane, 
         instrument: "harmonica", 
         age: 23},
      {
         name: "Joe Sash", 
         instrument: "trombone", 
         age: 28
       }
    ]
   }, 
     yearFormed: 2008, 
     records: [
        {
          name: "don't cut my hair", 
          successLevel: "platinum"
        },
       {
          name: "I stare in the mirror for hours", 
          successLevel: "double platinum"
       },
       {
           name: "I cry about how much I love not loving", 
           successLevel: "gold"
        },
        ], 
        platinumRecs: 2
}
  • Create Get, Post, Put, and Delete endpoints for this schema.
  • Whenever an object is created or updated, update the platinumRecs property