Completed sections in Angela Yu's Full Stack Web Development course on Udemy.
Section 30: Boss Level Challenge 4 - Blog Website Upgrade.
Task is to give the prior blog website a database and replace starting entries and looped entries with database references.
- Created Mongoose model and schema for MongoDB blog database.
- Corrected post route for adding entries to the database.
- Corrected home "/" route for finding and displaying the list of database entries.
- Fixed a bug where the redirect to "/" happened before database save. This was done with error checking callback functions.
- Corrected "Read More" links on home page to direct to a page based on the ID of the database entry.
- Corrected the EJS file properties passed into the post page to the properties of that entries title and content.
This was very challenging indeed! I learned a lot having to re-assemble the course content from scratch. I was able to learn new things while also reinforcing current knowledge.