Giter Club home page Giter Club logo

books-db's Introduction

LAB: Mongo Aggregations

Create an app with all CRUD routes for a model.

Before you begin

Refer to Getting Started in the lab submission instructions for complete setup, configuration, deployment, and submission instructions.

Requirements

Write a seed data script

Create a script that can seed your database. Use your script to seed your database before your tests.

Write CRUD routes for a model

Create a model and all CRUD routes for the model

Create static methods for aggregations

Write static methods on your model to run your aggregations

Create routes to get your aggregations

Example themes

  • workout application with Exercise model
    • volume by day
    • volume by exercise name
  • blog application with Post and Comment models
    • top 10 post with most comments
    • top 3 longest posts
  • book application with Book and Author
    • top 3 authors with the most books
    • top 3 authors with the most written pages

Rubric

  • Models 1 points
  • routes 2 points
  • seed data 3 points
  • aggregations 4 points

Assignment Submission Instructions

Refer to the the lab submission instructions for the complete lab submission process and expectations

books-db's People

Contributors

cnspangler avatar dependabot[bot] 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.