freeCodeCamp/curriculum/challenges/english/06-information-security-and.../information-security-and-qu.../personal-library.english.md

2.5 KiB

id title challengeType isRequired
587d824a367417b2b2512c43 Personal Library 4 true

Description

Build a full stack JavaScript app that is functionally similar to this: https://spark-cathedral.glitch.me/. Working on this project will involve you writing your code on Glitch on our starter project. After completing this project you can copy your public glitch url (to the homepage of your app) into this screen to test it! Optionally you may choose to write your project on another platform but must be publicly visible for our testing. Start this project on Glitch using this link or clone this repository on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!

Instructions

Tests

tests:
  - text: Nothing from my website will be cached in my client.
    testString: ''
  - text: The headers will say that the site is powered by 'PHP 4.2.0' even though it isn't (as a security measure).
    testString: ''
  - text: 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.
    testString: ''
  - text: I can get /api/books to retrieve an array of all books containing title, _id, and commentcount.
    testString: ''
  - text: 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).
    testString: ''
  - text: 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.
    testString: ''
  - text: I can delete /api/books/{_id} to delete a book from the collection. Returned will be 'delete successful' if successful.
    testString: ''
  - text: If I try to request a book that doesn't exist I will be returned 'no book exists'.
    testString: ''
  - text: I can send a delete request to /api/books to delete all books in the database. Returned will be 'complete delete successful' if successful.
    testString: ''
  - text: All 6 functional tests required are complete and passing.
    testString: ''

Challenge Seed

Solution

// solution required