This is a simple app that allows you to serach books by keywords/titles, authors or both by interfacing with the google books api.
On Linux:
-
Clone this directory using
git clone https://github.com/Prince-Majestal/BookSearch.git -
You will need to create a virtual python environment.
i) cd into the cloned directory.
ii) Create the environment with
python -m venv venviii) Activate the environment with
source/venv/bin/activate -
Install the required dependencies from the requirements list using
pip install -r requirements.txt. -
You will now need to get an activation key for google books api.
i) Go to https://console.cloud.google.com/ and sign in with your Google account.
ii) Select "create new project" at the top.
iii) Give the project any name you want and click "create".
iv) Once you are on the dashboard, select "library" from the left hand menu.
v) Search for "books" and click activate.
vi) This will take you to the api page. Once there click on the "Credentials" tab.
vii) Select "API key". This will generate the api key. Make sure to copy it!
-
In the project directory create a .env file and write
GOOGLE_BOOKS_API_KEY=PASTE_YOUR API_KEY_HERE -
Finally, to use the app, run
gunicorn -p 4 -b 127.0.0.1:8000 app:appand go to http://127.0.0.1:8000 . You are now ready to use the app!
On Windows:
COMING SOON!