In this project, users will be able to register for your website and then log in using their username and password. Once they log in, they will be able to search for books, leave reviews for individual books, and see the reviews made by other people. You’ll also use the a third-party API by Goodreads, another book review website, to pull in ratings from a broader audience. Finally, users will be able to query for book details and book reviews programmatically via your website’s API.
- Python >= 3.7
-
Install prerequisite packages
pip install -r requirements.txt
-
Set up the PostgreSQL hosted by Heroku
-
Get the
DATABASE_URL
from Heroku -
Set
DATABASE_URL
in import.py10 DATABASE_URL=''
-
Set
DATABASE_URL
in application.py6 DATABASE_URL = ""
-
Import books dataset from books.csv to database
python import.py
-
Execute
python application.py
-
Open the link on the terminal like below in your browser
* Serving Flask app "application" (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: off * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
-
Configure Procfile
web: gunicorn application:app