Giter Club home page Giter Club logo

mongodb_katas's Introduction

Intro

This repo contains 29 exercises for practicing basic querying of a MongoDB database via the Mongoose ODM.

Instructions

Required:

  • Node v18.12.1
  • Docker Desktop

To get up and running follow these instructions:

  1. npm install
  2. Add the connection string to your db to /src/config.js (in the exports.connectionString variable)
  3. npm run seedPresidentsDb

Your database should now be populated with data about 45 US presdents. Navigate to the /src/exercises directory. Here you'll find 29 exercises. Write a Mongoose/MongoDB query that produces a result according to the comment at the top of each respective file. To check your work just run "npm run exerciseX" where "X" is substituted for the number of the exercise you are on; e.g. "npm run exercise1"

To see the result that the solution produces run "npm run solutionX" where "X" is substituted for the number of the exercise you are on; e.g. "npm run solution1". The code for all solutions can be found under /src/solutions.

If using Docker to spin up a MongoDB database:

  1. Start Docker Desktop (if you have mongod running shut it down)
  2. docker compose up

mongodb_katas's People

Contributors

petter0619 avatar

Stargazers

Angie avatar

Watchers

 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.