Show your virtual book collection.
See in action here.
Based on this article by @crnacura.
Just clone it or download the repository, and run yarn install
.
To add a book you need to specify it in src/data/index.json
.
This file has an array with each book in the following format:
[
{
"isbn": "8478884459", // has to be a isbn 10
"title": "Harry Potter y la piedra filosofal",
"collection": 1, // optional
"author": "J.K. Rowling",
"author_photo": "rowling.jpg", // you need to add this file in `public/images/author`
"publisher": "Salamandra",
"cover": "8478884459.jpg", // you need to add this file in `public/images/covers`
"pages": "254",
"w": 306, // width
"h": 500, // height
"bg": "#faf599", // background color
"text": "#000", // text color
"excerpt": "Harry debes saber que eres un mago.",
"sinopsis": "Harry Potter se ha quedado huérfano y vive en casa de sus abominables tíos y del insoportable primo Dudley."
}
]
This project is a Create React App, and it has all of its scripts.