MongoDB| Socket.io | Build a very simple chat app
ckmobile
Last time, we already built a chat app using socket.io and nodejs, but the chat app did not store the chat history, the messages completely gone after refresh. This time we will implement the mongodb to help us store these history. In this tutorial, we will also talk about mongoose model and schema.
Complete NodeJS and MongoDB course https://www.udemy.com/course/create-nodejs-app-with-express-socket-io-and-mongodb/?couponCode=YT-NODEJSSKIPOCT
Support us with Bitcoin: 1NTuEsXoXE89YiJRNoBDBBRBECE7P9mBik
Open Crypto Wallet https://jp-ex.io/register?code=S6Gcvun6
To get the latest Udemy coupon and news, subscribe our telegram channel https://t.me/ckmobi
source code :https://github.com/cyrus8050/yt-simple-socketio-chat-mongodb.git
This is part 2 of this chat application tutorial, to see the part 1 https://youtu.be/bWwFImvDD2Y
0:00 Introduction 0:35 Setup MongoDB 2:25 Install Mongoose 2:58 Connect to MongoDB 4:23 Create Model 5:49 Store the message when server receive messages at server side 7:51 Fetch all messages from the MongoDB when start 9:19 Append all the messages at client side
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ 🔥Complete Courses🔥 ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Complete Progress Web App BootCamp https://www.udemy.com/course/complete-progressive-web-app-bootcamp/?referralCode=E04DAFEDCE920AB6EA55
Complete Modern JavaScript BootCamp from the beginning https://www.udemy.com/course/complete-modern-javascript-with-firebase-bootcamp-for-beginners/?referralCode=6AF7AA3DB6AD6B880D66
React - The Complete Guide with React Hook Redux 2020 in 4hr https://www.udemy.com/course/complete-react-course-w-hooks-react-router-redux-usecontext/?referralCode=B192869617ADE079536F
Vue JS and Firebase:Build an iOS and Android chat app [2020] https://www.udemy.com/course/vuejs-and-firebase-build-an-ios-and-android-chat-app/?referralCode=D959334D3BC5DB1FDF53
New SAT Math Course https://www.udemy.com/course/new-sat-math-complete-course/?referralCode=4E1A982C127EA13EB3D8
New SAT Math Practice Test Explain https://www.udemy.com/course/new-sat-maths-explain/?referralCode=ABD0C235875F55CB6F5F
Get A* in GCSE Maths (Quadratic equations and graph) https://www.udemy.com/course/get-a-in-gcse-maths-quadratic-equations-and-graph/?referralCode=2E4D7672FE3571F59DF8
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ 💟Follow me ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ‣‣ Udemy ► https://www.udemy.com/user/cyruschan2/ ‣‣ Twitter ► https://twitter.com/ckmobilejavasc1 ‣‣ Facebook ► https://www.facebook.com/javascript.ck/ ‣‣ Instagram ► https://www.instagram.com/ckmobile8050/
Equipment that I use
Macbook Pro
Blue Yeti USB mic
Camtasia
#javascript #webdevelopement ... https://www.youtube.com/watch?v=-SpWOpdzUKw
27392801 Bytes