Public Library

Plain JS Unidirectional Association App

An example of a front-end web app with unidirectional association management, built with plain JavaScript

This app, which is accompanied by a tutorial, is the 4th example app of our incremental sequence of six examples of Plain JS Front-End Web Apps.

This app supports the following operations:

  • For playing with the app, you may first want to and then view it (e.g. by choosing "Manage books" and then "List all books"). For observing the internal status and error messages, turn on the JavaScript console.

    This example app takes care of the object types Author, Publisher and Book as well as the two unidirectional associations that assign a publisher and (one or more) authors to a book. The app supports the four standard data management operations (Create/Read/Update/Delete). It extends the example app of Part 2 by adding code for handling unidirectional associations, but it needs to be enhanced by adding further important parts of the app's overall functionality, as explained in our other Plain JS Front-End Web Apps tutorials.