Git Product home page Git Product logo

mongodb-basics's People

Contributors

andrewbash avatar dependabot[bot] avatar marcestarlet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mongodb-basics's Issues

Create the JS logic to send "create/update/delete" requests to the REST API

Add new JS functions to the booksearcher.js file for:

  • Create a new book, that uses the JSON object created and sends it to the REST API.
  • Update a book, that uses the JSON object created and sends it to the REST API.
  • Remove a book, that uses the JSON object created and sends the ISBN value to the REST API.
  • Handle the possible responses: (check HTTP response status)
    • Failure
    • Bad request
    • Service Unavailable
    • Data not stored successfully
    • OK

Besides

  • Use async request by using ajax request methods in jQuery (put, post, delete)
  • Create, Update & Remove actions are asynchronous calls to the mongo database, the response could arrive a few time later, be prepared to receive an async response.
  • Use alerts for response messages (failures, errors, success).

NOTE: This issue does only afect JS code.

Add a JS logic to validate the "creation/update form" of a book

Validate the data integrity from the form filled out by the user:

  • All fields are required*
  • ISBN must have 10 or 13 digit size.
    • Validate ISBN has only digits, not other characters.
  • Edition must be a valid year between 1900 - Current year
  • Should be filled at least one Author
    • Author's Name is required
    • Author's Biography is optional
  • Should be filled at least one Classifcation

Add a new JS function to the booksearcher.js file or create a new file.
Display alerts for errors, and use input form CSS classes for required fields.

NOTE: This issue does only affect JS code and must be used in create & update views.

Create a view that contains a form for updating current book selected from the search view

Once the user have selected a book to update it, a new page/modal is loaded with the book data pre-loaded on each field.

  • Create a new html file or modal using bootstrap default theme.
  • Add and HTML form (bootstrap theme) that requests an update from the user the following pre-loaded data from the book selected on the search view:
    • ISBN
    • Title
    • Description
    • Edition
    • Editorial
    • Author(s) (dynamic form to request multiple authors in case there are more than one)
      • Name
      • Biography
    • Classifications (static list of classifications that can be multiple-selected by the user without repeat them)
  • Add a button to submit
  • Remove the html view from the navigation bar menu
  • Add the necessary Javascript code to the search engine to load a button/link that points this view.

NOTE: This issue does only the view (html/css) and the JS code is only to add view functionality.

Create a view that contains a form for adding new books

For this issue is necessary:

  • Create a new html file using bootstrap default theme.
  • Add and HTML form (bootstrap theme) that requests from the user the following:
    • ISBN
    • Title
    • Description
    • Edition
    • Editorial
    • Author(s) (dynamic form to request multiple authors in case there are more than one)
      • Name
      • Biography
    • Classifications (static list of classifications that can be multiple-selected by the user without repeat them)
  • Add a button to submit
  • Add the html view to the navigation bar menu

NOTE: This issue does only affect the view (html/css) not the JS code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.