Zombies versus Ninjas

A mini project to practice modeling with Mongoose.

Objectives

Create a simple MongoDB database using mongoose that models a simple zombies versus ninja game.

Setup a node.js project

  1. Create a node project.
  2. Npm install mongoose

Model the following

  1. Create a ninja model that has allows a ninja to store it's health, weapons, skills, abilities and the zombies that has been killed by the ninja
  2. Create a zombie model that allows a zombie to store it's health, appendages (arms, legs, etc), attackLevel, number of consumed ninjas.
  3. Make sure to display the ninajs and zombies as whole objects instead of the relationships (number of zombies killed, and number of ninjas consumed

Create an express api that exposes the zombies and the ninajs

  1. Create an endpoint for /v1/zombies
  2. Create an additional endpoint for /v1/zombies/:name
  3. Create an endpoint for /v1/ninjas
  4. Create an additional endpoint for /v1/ninjas/:name