Personal Library - Quality Assurance Projects - freeCodeCamp
Ganesh H
This is a full walkthrough for the Personal Library project on freeCodeCamp. After setting up a database connection and securing our routes, we create a mongoose model for a book. Using this model, we can set up api routes to modify books on a database to build the project, and test this using some functional tests.
Link to Project : https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-projects/personal-library Written Guide: https://www.notion.so/ganeshh123/Personal-Library-34b8c36a3efa46678a6b37a7fb931fbe
Full Playlist for this course : https://www.youtube.com/playlist?list=PLhGp6N0DI_1THkXF3kT2kVnN8pR4HCbGp All Writen Guides for this course : https://www.notion.so/ganeshh123/2362de926605419faadb16f295b772c6 All My Tutorials can be found at : https://www.notion.so/Tutorials-Ganesh-H-293ea420d34a464f9a1907e0405b5f26
00:00 - Project Setup 03:44 - Database Connection 08:15 - Test 1 - Nothing from my website will be cached in my client 10:16 - Test 2 - The headers will say that the site is powered by 'PHP 4.2.0' even though it isn't (as a security measure) 12:06 - Creating the Book Model 14:24 - Test 3 - I can post a title to /api/books to add a book and returned will be the object with the title and a unique _id 20:28 - Test 4 - I can get /api/books to retrieve an array of all books containing title, _id, and commentcount 25:48 - Test 5 - I can get /api/books/{id} to retrieve a single object of a book containing _title, _id, & an array of comments (empty array if no comments present) 30:25 - Test 6 - I can post a comment to /api/books/{id} to add a comment to a book and returned will be the books object similar to get /api/books/{id} including the new comment 36:54 - Test 7 - I can delete /api/books/{_id} to delete a book from the collection. Returned will be 'delete successful' if successful 40:46 - Test 8 - If I try to request a book that doesn't exist I will be returned 'no book exists' 45:00 - Test 9 - I can send a delete request to /api/books to delete all books in the database. Returned will be 'complete delete successful' if successful 48:02 - Test 10 - All 6 functional tests required are complete and passing 51:50 - Styling & Final Touches
-————————————————————————————————————- Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside a web browser. Node.js lets developers use JavaScript to write command line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser.
Express.js, or simply Express, is a web application framework for Node.js. It is designed for building web applications and APIs. It has be ... https://www.youtube.com/watch?v=OTLlOmN4FGM
269231950 Bytes