IamManchanda / api-design-node-express-l3

Practice Project: API Design in Node with Express - Lesson 3 / Exercise 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API design in Node.js with Express, v3

Practice Project - Lesson 3 / Exercise 2

Create Schemas

  • test command - npm run test-models

In this exercise, you'll be taking what you learned about Mongoose and MongoDb to create a schema and model for the Item resource.

  • create a schema for the item resource
  • add the correct fields (look at test)
  • add the correct validations (look at test)
  • extra add compund index to ensure all tasks in a list have unique names
  • ensure all tests pass by running test command

About

Practice Project: API Design in Node with Express - Lesson 3 / Exercise 2


Languages

Language:JavaScript 100.0%