ASMR Programming - How to Connect MongoDB to Nextjs

Опубликовано: 14 Октябрь 2024
на канале: dorinelJs
233
11

In this quick video, we'll show you how to connect MongoDB to Nextjs in minutes. Nextjs is a fast and efficient JavaScript framework that makes it easy to build web applications. We'll show you how to connect MongoDB to Nextjs and create a model, schema, and database.

If you're looking to build a web app with Nextjs, this video is for you! We'll show you how to connect MongoDB to Nextjs and create a model, schema, and database in minutes. Nextjs makes it easy to build fast and efficient web applications, so don't miss out on this quick and easy tutorial!

🙏 Thank you for following along and please let me know what you think in the comments below!

0:04 create next js project 🏆
0:57 install mongoose 🏆
1:13 create Folder (utils ) in the project directory and a file (connectDb.js) 🏆
3:31 create folder Models in the projects directory 🏆
3:51 create a model and export the model 🏆
5:10 now inside your project directory open a pages folder - api
folder and create a file index.js 🏆

Hi everyone!👋
I'm Dorinel , 24 years old. Frontend developer! based in Albania.
If you need to have a beautiful website for your business contact me on fiverr. Link in Bio.

#webdevelopment #softwaredeveloper #softwareengineer