A mini project to practice modeling with Mongoose.
Create a simple MongoDB database using mongoose that models a simple zombies versus ninja game.
- Create a node project.
- Npm install mongoose
- 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
- Create a zombie model that allows a zombie to store it's health, appendages (arms, legs, etc), attackLevel, number of consumed ninjas.
- 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 endpoint for /v1/zombies
- Create an additional endpoint for /v1/zombies/:name
- Create an endpoint for /v1/ninjas
- Create an additional endpoint for /v1/ninjas/:name