Install all required dependencies
npm install
Start the express server with
npm start
and navigate too localhost:8000
- Setup and Initialization
.gitignore
correctly Setupnpm install
andnpm start
execute properly
Key | Type | Required |
---|---|---|
title | string | true |
author | string | true |
genre | string | false |
year | integer | false |
Path | Method |
---|---|
/ | get |
/books | get |
/books/new | get |
/books/new | post |
/books/:id | get |
/books/:id | post |
/books/:id/delete | post |
View |
---|
layout.pug |
index.pug |
new-book.pug |
update-book.pug |
error.pug |
page-not-found.pug |
- Book search
- Add search functionality to the main booklist
- Search
title
,author
,genre
,year
fields - Case insensitive
- Partial matches
- Includes pagination
- Form fields
title
andauthor
fields are required, error message shows otherwise- Employ Sequalize validation, not HTML validation
- Label selection focuses on related input
- Errors
- Non existant
book_id
displays anot found
error message - Defualt page not found displayed for invalid routes
- Non existant
- Styles
- Use provided styles and match example mockups