Back to Browse

Build a Web App with MongoDB Using Just Python

414 views
Jan 8, 2026
17:50

Build and deploy a CRM web app with a MongoDB database using just Python. No HTML, CSS, or JavaScript required. Anvil lets you build full-stack web apps with all the power of Python and all the flexibility of code. 🔗 FOLLOW ALONG: Tutorial code: https://anvil.works/build#clone:UJ3PW3CWLBQVGO6Q=3WYYRMWKPSTUZJV2NSW7ACBK?utm_source=youtube:mongodb MongoDB sample dataset: https://www.mongodb.com/docs/atlas/sample-data/sample-analytics/ Start building: https://anvil.works/build?utm_source=youtube:mongodb 📚 LEARN MORE: External databases in Anvil: https://anvil.works/docs/data-tables/external-database?utm_source=youtube:mongodb User Management in Anvil: https://anvil.works/docs/users?utm_source=youtube:mongodb Anvil's built-in database: https://anvil.works/docs/data-tables?utm_source=youtube:mongodb --------------------------------------------------- CHAPTERS: 0:00 Introduction & Demo SETUP 0:55 MongoDB Atlas Dataset 1:27 Create Anvil App 1:32 Forms & Components in Anvil 1:49 App Setup & Theming 2:08 Form Editor Overview 2:19 Drag-and-Drop Components BUILD THE UI 2:29 Design the UI 2:37 Design Customer List 3:19 Design Customer Card Template 4:02 The Form's Item Property 4:14 Data Bindings 5:50 How RepeatingPanels Work CONNECT TO MONGODB 6:04 Connect to MongoDB 6:11 Get Connection String 6:25 Client vs Server Code 6:49 Add Server Module 7:08 Add pymongo Package 7:25 Create MongoDB Client 7:35 Secure Password with App Secrets 8:25 Update IP Access List 8:43 Create get_customers() Function 8:59 Connect UI to MongoDB Data 9:32 Run App & View Data ADD FEATURES 9:46 Add Search Functionality 10:50 Test Search 11:12 Add Update Email Feature 11:43 Create Update Popup Form 12:13 Enable Writeback 12:40 Display Popup with alert() 13:13 Call update_email() on Save 13:30 Create update_email() Server Function 14:05 Refresh Data with Custom Events 15:00 Test Update Feature SECURE & DEPLOY 15:11 Add Authentication 15:32 The Users Table 16:23 Test Authentication 16:34 Deploy Your App 16:45 Test Live App

Download

0 formats

No download links available.

Build a Web App with MongoDB Using Just Python | NatokHD