Edit & Update User Profile Page in Express + MySQL🔥

Edit & Update User Profile Page in Express + MySQL🔥

T
Thapa Technical
Apr 4, 2025

Want to allow users to edit their profile (name, email, etc.) after login? In this video, I’ll show you how to create a profile edit feature in Node.js with full validation, controller setup, and database updates. No more broken forms—this is a complete guide!

🎯 What You’ll Learn:
✅ How to create an Edit Profile page
✅ How to update user details like name, email, etc.
✅ How to use Zod for validation
✅ How to set up routes & controllers in Node.js
✅ How to test everything step by step

📢 BONUS: A "Sad Story" at 0:50 that you might relate to! 😢

🔥 Access Source Code, PPT & Notes here for Free : https://www.thapatechnical.com/2024/11/introduction-to-nodejs.html

📺 Watch the complete Node.JS Playlist here :https://youtube.com/playlist?list=PLwGdqUZWnOp3KELplHtc-RnJ5xTUPqdgH&si=_ob8F88HYxCdspup
------------------------------------------------------------------------
🚀 Boost Your Skills with these Pre-Requisite Videos:

🔗 Best HTML Course - https://youtu.be/5ccq_nLHneE
🔗 Best CSS Course - https://youtu.be/MSICFljRcb4
🔗 JavaScript Basics Course Part 1 - https://youtu.be/13gLB6hDHR8
🔗 JavaScript Advanced Course Part 2 - https://youtu.be/YwsOCN8woA8

------------------------------------------------------------------------
💸 Build Your Own E-commerce Website for Free! - https://www.thapatechnical.com/2024/03/build-complete-ecommerce-website-using.html

------------------------------------------------------------------------
✌️ Join Us!

🚀 Become a Member: Unlock perks, free source code, and more Join Now : https://www.youtube.com/channel/UCwfaAHy4zQUb2APNOGXUCCA/join
📷 Connect on Instagram: https://www.instagram.com/thapatechnical
🗨️ Join Our Discord Server: Hang out with fellow programmers Discord Link: https://discord.gg/MdScmCsua6

------------------------------------------------------------------------

⌛TIMELINE⏳
0:00 - Intro to Profile Edit
0:14 - Complete Demo on How to Edit Profile Page
0:50 - Sad Story 😢 (Must Watch!)
1:55 - Step-by-Step Guide on How to Do It
2:50 - Get Source Code for Free!
3:02 - Creating Edit Profile Page Route
3:28 - EditProfilePage Controller Function
6:30 - Creating editProfile.ejs Page (Frontend)
8:10 - Creating POST EditProfile Page - Route
8:40 - POST EditProfile Page Controller Function
9:05 - User Validation Using Zod (No More Bad Data!)
11:50 - updateUsername Function to Update Name
13:35 - Testing Our Code - Does It Work?