Nothing Special   »   [go: up one dir, main page]

Skip to content

A personal library, that stores books and comments on the books (API & frontend)

Notifications You must be signed in to change notification settings

atiyahaider/Personal-Library

Repository files navigation

FreeCodeCamp- Information Security and Quality Assurance

Project Personal Library

User stories

  1. ADD YOUR MongoDB connection string to .env without quotes as db example: DB=mongodb://admin:pass@1234.mlab.com:1234/fccpersonallib
  2. SET NODE_ENV to test without quotes
  3. All routes to be created within routes/api.js
  4. Add any security features to server.js
  5. Create all of the functional tests in tests/2_functional-tests.js
  6. Nothing from the website will be cached in the client as a security measure. 7) Site powered by 'PHP 4.2.0' is seen, even though it isn't, as a security measure.
  7. post a title to /api/books to add a book and returned will be the object with the title and a unique _id.
  8. get /api/books to retrieve an array of all books containing title, _id, & commentcount.
  9. 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). 11) 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}.
  10. delete /api/books/{_id} to delete a book from the collection. Returned will be 'delete successful' if successful.
  11. If a book is requested that doesn't exist, a 'no book exists' message will be displayed.
  12. delete request to /api/books to delete all books in the database. Returned will be 'complete delete successful' if successful.
  13. All 6 functional tests required are complete and passing.

alt text

Front End

About

A personal library, that stores books and comments on the books (API & frontend)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published