Express - Mini Project - Library Overview

anonymous·2021년 9월 17일
0

Function

  • Online catalog for a small local library where users can browse available books and manage their accounts.

UML - Model Relationship

Info Req for ...

Books

  • Information about books
  • Multiple Copies
  • Information about author
  • Allow Sorting

System Path

Routes for the Site

catalog/ — The home/index page.
catalog/<objects>/ — The list of all books, bookinstances, genres, or authors 
(e.g. /catalog/books/, /catalog/genres/, etc.)
catalog/<object>/<id> — The detail page for a specific book, bookinstance, genre, or author with the given _id field value 
(e.g. /catalog/book/584493c1f4887f06c0e67d37).
catalog/<object>/create — The form to create a new book, bookinstance, genre, or author 
(e.g. /catalog/book/create).
catalog/<object>/<id>/update — The form to update a specific book, bookinstance, genre, or author with the given _id field value 
(e.g. /catalog/book/584493c1f4887f06c0e67d37/update).
catalog/<object>/<id>/delete — The form to delete a specific book, bookinstance, genre, author with the given _id field value 
(e.g. /catalog/book/584493c1f4887f06c0e67d37/delete).

Route-handler Controllers

/express-locallibrary-tutorial  //the project root
  /controllers
    authorController.js
    bookController.js
    bookinstanceController.js
    genreController.js

Template with Pug

/express-locallibrary-tutorial  //the project root
  /views
    error.pug
    index.pug
    layout.pug
profile
기술블로거입니다

0개의 댓글