I don't know it anyone remembers that old show Captain Planet and the Planeteers, but much like our planet saving heroes and with their powers combined we used MongoDB, Mongoose & Express to build a fully functioning CRUD (Create, Read, Update, Delete) web app!
Meet the most fully functional and inspired roadside farm stand application we've seen yet. -Trendy News Today
Ok... it's not so pretty to look at and it is probably missing some functionality but it successfully combines those technologies into a great example of something more complex than static HTML and the fake JSON database files that we've been working with so far.
To make this project happen, we learned about a few key topics:
Those combined with the HTML templating we spoke about in update #4, gives us the bones to build something more complex.
Nick Karnik over at FreeCodeCamp has a great writeup about Mongoose and he says:
Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node.js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB.
I highly recommend you check out his writeup if you want to know more about Mongoose and how it connects with MongoDB and NodeJS.
This week was about combining past knowledge with the last missing piece of the pie, MongoDB. We finally made something that can persist data across sessions and from here on out we'll be refining our knowledge of the basics to build better web applications.
Our next major focus is to expand on existing knowledge and start building the capstone project, something called YelpCamp. I will share more on that over the next few weeks.
I'm no where near out of the woods yet, but I'm on a good path.
"Education is the key, and perseverance opens the door." - Zach Al-Kharusy
I hope you enjoyed the read!