Book Review Website
This website is for reviewing books. The application allows users to register / login / logout, search for books, leave a review for individual books, and see reviews made by other people. The application also allows users to see book information and reviews made by other people using the Goodreads API. Finally, book details and reviews can be queried programmatically via a custom API.
api_key
environment variable to your Goodreads API key.secret_key
environment variable to your Flask secret key.DATABASE_URL
environment variable to the address of your Heroku database.application.py
, execute flask run
to launch the application.Books404you
directory.static
directory.templates
directory.application.py
.books_tables
: SQL code for three database tables.books.csv
: CSV file of 5000 booksimport.py:
Python code to upload CSV file contents to a database table.To view a book’s details in JSON format, navigate to .../api/ISBN_NUMBER
. JSON returns data in the following format:
{
"title": "Memory",
"author": "Doug Lloyd",
"year": 2015,
"isbn": "1632168146",
"review_count": 28,
"average_score": 5.0
}