Git Product home page Git Product logo

mongodb-quickstart-course's Introduction

MongoDB Quickstart with Python course

Course materials for Talk Python's free MongoDB course.

Learn the most popular NoSQL / document database: MongoDB. In just 2 hours, you'll be up and running with MongoDB and Python.

Course image

Take the course

Are you ready to take the course? Visit the course website to get started.

freemongodbcourse.com

It's easy and 100% free.

Course outline

  • Why choose NoSQL and MongoDB?
  • Modeling data in a document-database
  • mongoengine ODM: Map classes to MongoDB
  • Course wrap-up

You have a free and paid course?

Wondering how this compares to our full, commercial MongoDB for Python for Developers course? This course is a brief introduction and 2.0 hours long. The full MongoDB course covers much more, in greater depth and is 7 hours of content.

Think of this course as the appetizer to prepare you for the main course. That said, the demo materials and majority of the content is unique to this course.

mongodb-quickstart-course's People

Contributors

mikeckennedy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mongodb-quickstart-course's Issues

image not found

image

Hi, I seem to be missing an image, which is preventing the Snake BnB app from running in PyCharm.

This is in the 'Demo:Getting started with the application / demo code' lesson in the Modeling data in document databases module.

Not sure what image I need or where to retrieve it, thanks. Thanks -Ian

Error in command selection

Not sure if that qualifies as an issue, but I noticed that the command selection in the starter_code.

The show_commands method shows 'L' as being for login in, but the switch case lists it as 'list_cage' instead.

def show_commands():
    print('What action would you like to take:')
    print('[C]reate an account')
    print('[L]ogin to your account')
    print('[R]egister a cage')
    print('[U]pdate cage availability')
    print('[V]iew your bookings')
    print('Change [M]ode (guest or host)')
    print('e[X]it app')
    print('[?] Help (this info)')
    print()

with switch(action) as s:
    s.case('c', create_account)
    s.case('a', log_into_account)
    s.case('l', list_cages)
    s.case('r', register_cage)
    s.case('u', update_availability)
    s.case('v', view_bookings)
    s.case('m', lambda: 'change_mode')
    s.case(['x', 'bye', 'exit', 'exit()'], exit_app)
    s.case('?', show_commands)
    s.case('', lambda: None)
    s.default(unknown_command)```

No module named 'colorama'

I am trying to run your snakebnb course but it won't load past section 4 lecture nine due to this error:

ile "/home/jbrandes/mongodb-quickstart-course/src/snake_bnb/src/program.py", line 1, in
from colorama import Fore
ModuleNotFoundError: No module named 'colorama'

Where is the actual MongoDB - database to which you connect in the course?

First of all, thanks for the free course on Udemy!

However, in section 5, video 16 you connect to the database, but in the github-files there is apparently no database to connect with.
At least I haven't found anything.
I've installed Robo 3T (formerly RoboMongo) to mimic what you're doing in the video, but where the database comes from is incomprehensible for me.

Thanks in advance for your help!

It would be helpful if the source provided is the initial version.

As i start to go through the tutorial i download the code. and see its the complete code i.e. final snake bnb.
it would be helpful if i can code as the tutorial progress. just having the base structure will be nice on which we can build and complete the code as the session progresses.

venv creation inconsistency with video

Hi Mike,

Just starting to work through this after hearing about it on your podcast. The recent move of the requirements.txt file to the src directory creates a mismatch with the video. The student is left wondering whether to run the python -m venv command in snake_bnb or in the src subdirectory (where the requirements.txt is now). Well, I wondered.

Also I'm using an anaconda python3 dist, and I got

python3 -m venv .env --copies
Error: Command '['..../mongodb-quickstart-course/src/snake_bnb/.env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.

What worked for me was
python3 -m venv --without-pip .env --copies
This created the .env directory in snake_bnb alongside src. Hope this is as intended.

Integration DB is not a good idea for relational DB?

Howdy and thanks a ton for this course! Ok, Q:

In the video here: https://training.talkpython.fm/player/course/mongodb-python-quickstart-mongoengine/lecture/100303

๐Ÿ‘‰ Integration DBs vs application DBs, 1m13s, you say "an integration database isn't a great idea for relational databases."
Is that what you meant? After the explanation a few seconds prior about the model being enforced by the applications and they could get out of sync, potentially getting to data corruption, I thought you were talking about document dbs, not relational dbs.

If a relational DB forces model at the DB level, won't that lead to less potential of data corruption?

for_relational_databases

Udemy course error

Dear Mike,
i'm doing this course. I'have this issue when i try to update the availability of a cage. Can you help me?
Luis> u
****************** Add available date ****************
You have 2 cages.

  1. Culebra is 1.0 meters.
  2. Boa is 33.0 meters.
    Enter cage number: 1
    Selected cage Culebra
    Enter available date [yyyy-mm-dd]: 2020-10-26
    How many days is this block of time? 16
    Traceback (most recent call last):
    File "D:/historian_mongo/mongo/snake_bnb/program.py", line 65, in
    main()
    File "D:/historian_mongo/mongo/snake_bnb/program.py", line 17, in main
    program_hosts.run()
    File "D:\historian_mongo\mongo\snake_bnb\src\program_hosts.py", line 31, in run
    s.default(unknown_command)
    File "D:\historian_mongo\mongo\snake_bnb\src\infrastructure\switchlang.py", line 93, in exit
    self.__result = func()
    File "D:\historian_mongo\mongo\snake_bnb\src\program_hosts.py", line 158, in update_availability
    svc.add_available_date(
    File "D:\historian_mongo\mongo\snake_bnb\src\data\services\data_service.py", line 64, in add_available_date
    cage.save()
    File "D:\historian_mongo\mongo\venv\lib\site-packages\mongoengine\document.py", line 388, in save
    self.validate(clean=clean)
    File "D:\historian_mongo\mongo\venv\lib\site-packages\mongoengine\base\document.py", line 445, in validate
    raise ValidationError(message, errors=errors)
    mongoengine.errors.ValidationError: ValidationError (Cage:5f90470a942e7bd931bad341) (Invalid embedded document instance provided to an EmbeddedDocumentField: ['bookings'])

Process finished with exit code 1

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.