GithubHelp home page GithubHelp logo

mean_mongo's Introduction

Code Exercise

There are two files that you will need to work with, course.js and student.js. After you've run npm install, run npm run watch to start Gulp and automatically re-run tests every time the course.js and student.js files change.

First, for student.js, you will need to implement two virtuals. The student schema stores the student's full name. The firstName virtual will return the student's first name as computed from their full name. The lastName virtual will do the same for the student's last name.

For course.js, you will have to fill out the entire course schema. The course schema must have the following fields:

  • _id: a string representing the course number, such as "CS-101". Required.
  • title: the course's title as a string, such as "Introduction to Computer Science". Required, maximum of 140 characters.
  • description: a description of the course as a string. Required.
  • requirements: an of course numbers (as strings) representing the courses a student should take before taking this course.

Once you have met all of these requirements, npm run watch will exit and provide you a secret phrase. Please enter this code in your browser window so we can verify that you completed this exercise.

mean_mongo's People

Contributors

akkash avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.