MVP Engineer
MVP Engineer
  • Видео 6
  • Просмотров 55 761
🔥 Python Projects | Build Flask REST API with MongoDB database [2020]
In this video, I will show you how to build REST API using Python flask and use MongoDB as a database. Also, we will do in 100 lines or less. The Books API will implement CRUD : Create, Retrieve, Update and Delete.
This is a fully functional code and I recommend that you watch all the way till the end. At any point in this video, if you are unable to follow, please let me know in the comment section and I will help you out for sure.
- TIMESTAMPS -
00:00 - Video Overview
00:58 - What is Flask?
01:18 - MongoDB Atlas Database
02:28 - Let's start Coding - Basic Flask App
03:45 - Connecting to MongoDB Atlas and creating a free MongoDB Database
06:22 - MongoDB document object
08:32 - Overview - Flask...
Просмотров: 17 040

Видео

Learn MongoDB using Python MongoEngine | Python MongoDB tutorial
Просмотров 9 тыс.4 года назад
In this 15-min video, we will go through how to use MongoDB with Python. We use MongoDB Atlas DB in the cloud and Python3. - TIMESTAMPS - 00:00 MongoDB Quickstart 00:16 What is MongoDB 01:28 Create a MongoDB Atlas Database 02:40 Connect to the database 05:10 Define a Book Document Collection 06:34 Create a new book document and add it to collection 07:10 Fetch the document 09:18 Update the docu...
Write Python unit tests | Flask API Testing using unittest and requests
Просмотров 17 тыс.4 года назад
In this 20-min video, we will start with writing a simple unit-test for an addition function using unittest standard library and then use the same concept and build upon it to write tests for the Flask API. The Books API implements CRUD : Create, Retrieve, Update and Delete and all operations will be tested using Python requests module. - TIMESTAMPS - 00:00 Why API Testing 00:41 Python unittest...
🔥Python Projects | Flask REST API with Sqlite Database in 100 lines
Просмотров 9 тыс.4 года назад
In this 20-min video, we will learn "How to write a Flask REST API and use Sqlite Database as a data store in less than 100 lines". The Books API will implement CRUD : Create, Retrieve, Update and Delete. The example shown in this video is a fully functional REST API. Link to source-code - github.com/rahularora/RUclips-source-code/blob/master/flask-api-sqlite/api.py Flask API Playlist - ruclips...
Best Visual Studio Code Extensions for Python Development [2020]
Просмотров 2,4 тыс.4 года назад
In this video I will show you how to setup Visual Studio Code to write Python code with some helpful extensions. We will be installing Python and VSCode using Homebrew first and then I m going to walk you through how to install extensions and show you what each of them do. Extensions that I covered - 1. Python Official by Microsoft 2. Visual Studio Intellicode 3. Kite 4. AREPL 5. Better comment...
Learn Python in 30 minutes | Python Tutorial for Beginners [2020]
Просмотров 8334 года назад
In this video, we will be covering "Python in 30minutes". There are hundreds of Python in X minute videos and blog articles. What makes this video special? We are going to do things differently in this video. Instead of going through Python programming language features and how to code each of them, we are going to code two programming tasks which will cover Beginner level Python concepts. I m ...

Комментарии

  • @VibhuVikramSingh-o7p
    @VibhuVikramSingh-o7p Год назад

    which code editor are you using in this video tutorial? Thanks

  • @SirAkshayJoshi
    @SirAkshayJoshi Год назад

    Where is the code?

  • @SirAkshayJoshi
    @SirAkshayJoshi Год назад

    Hello Sir, you have extremely good command, thanks

  • @manojkumarm6609
    @manojkumarm6609 Год назад

    Please provide source code or constants.py code,please

  • @manojkumarm6609
    @manojkumarm6609 Год назад

    Hi sir I got error like no module found as api_constants,can u please provide what inside the api_constants.py file

  • @infinitywar2078
    @infinitywar2078 Год назад

    Please make video on employee report by using flask and oracle if possible for erp n crm

  • @gman7153
    @gman7153 2 года назад

    good explanation, no code provided but easy to develop

  • @ramakotireddy3791
    @ramakotireddy3791 2 года назад

    A great work for begining

  • @entity5678
    @entity5678 2 года назад

    Thank you so much..you are awesome

  • @entity5678
    @entity5678 2 года назад

    Thank you..this video was very helpful

  • @maheshparihariiitdharwad6164
    @maheshparihariiitdharwad6164 2 года назад

    my data is getting stored in 'books.db-shm' intead of 'books.db' is there any solution?

  • @saswatsahoo5038
    @saswatsahoo5038 2 года назад

    is it actually updating and deleting records from the database? if. yes, it's a functional test not a unit test

  • @dvesc
    @dvesc 2 года назад

    thank you very much, i was using pymongo but i didn't like somethings we need to do to implement it

  • @RizwanKhanSahab
    @RizwanKhanSahab 2 года назад

    What to write in place of password and database name app_constant file mein kya hai wo to aap ne nahi bataya

  • @boldganbaatar7023
    @boldganbaatar7023 2 года назад

    can we see api_constants.py structure? i mean what is inside.

  • @dhilipkarthik1807
    @dhilipkarthik1807 2 года назад

    short and very useful video with a great content in a nutshell

  • @eklavyachandra
    @eklavyachandra 3 года назад

    The title is "with sqlite", where is Sqlite?

  • @priyalorha4412
    @priyalorha4412 3 года назад

    instead of format() using f string

  • @ikramullahmohmand
    @ikramullahmohmand 3 года назад

    worked in a brilliant manner. thumbs up

  • @ErikBurdett
    @ErikBurdett 3 года назад

    Hi, I keep getting the error: r =requests.get(ApiTest.url) NameError: 'requests' is not defined. I am testing on a heroku deployed url

  • @radekjestrabik8507
    @radekjestrabik8507 3 года назад

    Great job! Thank you.

  • @kartiksaxena936
    @kartiksaxena936 3 года назад

    Great tutorial and easy to follow

  • @sohrabpirhadi9333
    @sohrabpirhadi9333 3 года назад

    Why Indians can not speak English like a human? I'm sick of your accent!

  • @advrxh
    @advrxh 3 года назад

    dude, great tutorial... but can u share ur bashrc plss...I'm in love with it!!!! :)

  • @akshat4624
    @akshat4624 3 года назад

    Sir, please provide source code

  • @shubhamkale735
    @shubhamkale735 3 года назад

    Thank you sir , kuch nhi samjha meko

  • @miladmoradnia2844
    @miladmoradnia2844 3 года назад

    add subtitle

  • @mestralletjoseph779
    @mestralletjoseph779 3 года назад

    Thank you so much it's very clear, Congrats

  • @noicetree7787
    @noicetree7787 3 года назад

    Someone:After so many reading ,coding , writing Finally could print ("Hello World") Someone:Time to hack google

  • @NeotenicApe
    @NeotenicApe 3 года назад

    Great video, thanks so much

  • @rohandevaki4349
    @rohandevaki4349 3 года назад

    instead of httpie, you could have used postman, that is prominent, and learning it would be useful to others

  • @rohandevaki4349
    @rohandevaki4349 3 года назад

    i have a doubt that can we create a MVC structure in flask, using this mongodb as a database?, because i am also a nodejs developer and I follow MVC structure in that.

  • @rohandevaki4349
    @rohandevaki4349 3 года назад

    at 6:49, can we use this ? DB_URI = f"mongodb+srv://{mongodb_user}:{mongodb_password}@cluster0.3kcv6.mongodb.net/{mongodb_dbname}?retryWrites=true&w=majority"

  • @rohandevaki4349
    @rohandevaki4349 3 года назад

    sir , can you share the docs where i can find, how to connect flask and mongodb atlas, i am not able to find anything related to this

  • @anjumrohra9778
    @anjumrohra9778 3 года назад

    How did you create password in another Python file?

    • @rahularoradce
      @rahularoradce 3 года назад

      In a new file, add a constant variable and then import it. Check stackoverflow answer - stackoverflow.com/questions/6343330/importing-a-long-list-of-constants-to-a-python-file

    • @entity5678
      @entity5678 2 года назад

      create a file named say password.py. In that file write this code: def my_password( ): return 'mySecretPassword' In your current working python file say application.py , do the following: from password import my_password print( f '{my_password( )} is awesome' ) Then the output would be: mySecretPassword is awesome

  • @rafaelcarvalho2918
    @rafaelcarvalho2918 3 года назад

    Very good, how to make a 'ref:' collection 'in the schema in python using Flask?

    • @rohandevaki4349
      @rohandevaki4349 3 года назад

      ya he is not using schemas at all, and i also want to use that methods. may be we need to refer pyMongo instead of mongoengine

    • @rafaelcarvalho2918
      @rafaelcarvalho2918 3 года назад

      @@rohandevaki4349 when you can and share with me i will be very grateful

    • @rohandevaki4349
      @rohandevaki4349 3 года назад

      @@rafaelcarvalho2918 ya if i get them , i will share with u for sure

  • @megha_shah
    @megha_shah 4 года назад

    Is it also for window 7 os ?

    • @rahularoradce
      @rahularoradce 3 года назад

      Yes. Visual Studio Code is available for all Operating systems.

  • @ward999east5
    @ward999east5 4 года назад

    good job, but where i can download the source code that i can run and have a quick look?

  • @latinbishop1722
    @latinbishop1722 4 года назад

    U mention sqlite in title but never saw it

  • @suvethachandramohan2468
    @suvethachandramohan2468 4 года назад

    Can u please do this in postgres my kind request could you upload a video on it

    • @bavatharani6509
      @bavatharani6509 4 года назад

      yeah it will better if you upload a video in postgres

  • @shivammagotra3794
    @shivammagotra3794 4 года назад

    Great Explanation. Helped a lot!!

  • @ProgrammerGirl
    @ProgrammerGirl 4 года назад

    Good video! Keep doing the great job!

  • @rabbaniable
    @rabbaniable 4 года назад

    It's really nice session. Please do one session for Redis aswell

  • @NadeemInamdar
    @NadeemInamdar 4 года назад

    Very nicely explained! Thumbs up!! It will be great if you can create a follow up video where you can demonstrate 2- or 3- levels of complex JSON documents handling for MongoDB. Thanks for this!

  • @bigfatcrab
    @bigfatcrab 4 года назад

    Pandemic is going on!

  • @garimasood7768
    @garimasood7768 4 года назад

    Good tutorial

  • @garimasood7768
    @garimasood7768 4 года назад

    Great Insights

  • @realblummusic
    @realblummusic 4 года назад

    u should link and share the code :)

    • @rahularoradce
      @rahularoradce 4 года назад

      Thank you for pointing it out. Sorry i missed it. It is now part of the description - github.com/rahularora/RUclips-source-code/blob/master/flask-api-sqlite/api.py

  • @oxxodome
    @oxxodome 4 года назад

    Hi, Its very Nicely Explained!!! , Can you please guide me as in how using FLASK, can I consume a REST API of another application say: url1/travel9/rest/places/ using GET method & put the data into another application say: url2/travel9/rest/places/ using POST method. Thanks

    • @rahularoradce
      @rahularoradce 4 года назад

      Hi Abhishek. You can use "requests" to consume another API from flask. def some_func(): r = requests.get('url1/travel9/rest/places') return r.text Please subscribe to my channel if you like the video. Thank you :)

  • @venkyitsme1
    @venkyitsme1 4 года назад

    Great tutorial. Brew is not available for windows. Please add a windows tutorial too.

    • @rahularoradce
      @rahularoradce 4 года назад

      I don't have a windows machine on my end. Instead of homebrew, you can download python and visual studio code directly from the website and use installer. Thank you for viewing the video. Please subscribe to my channel :)

    • @venkyitsme1
      @venkyitsme1 4 года назад

      @@rahularoradce Great. Suggestion works. Thanks