Skip to content

honghainguyen777/bookquery

Repository files navigation

BookQuery

Visit and try this app on Heroku

Features of the app

Login page

Register page

Search result page

Book page

Review features

Question and answer features

Changing password page

Request for book API

https://bookquery.herokuaapp.com/api/ + book-ISBN

⚙️ Setup local environment and run the flask application

Install Python and flask

Download and install Python:

Install Flask through terminal (first time only):

$ pip install Flask
$ pip install SQLAlchemy
$ pip install Flask-Session
$ pip install Werkzeug
$ pip install requests

Download the BookQuery

$ git clone https://github.com/honghainguyen777/bookquery.git
$ cd bookquery

Start the BookQuery application

# Install requrements for the application (pip or pip3)
$ pip3 install -r requirements.txt

# set environment variable (Windows)
$ set FLASK_APP=application.py
$ set FLASK_DEBUG=1
$ set DATABASE_URL= (paste Postgres database URI here, register see below)

# set environment variable (for Mac or Linux)
$ export FLASK_APP=application.py
$ export FLASK_DEBUG=1
$ export DATABASE_URL= (paste Postgres database URI here, register see below)
Update all tables and data into the Heroku database server
$ python import.py

Run the program and enjoy developing

$ flask run

Register and get a free database (10000 rows)

  1. Register for a free account https://www.heroku.com/
  2. On Heroku's Dashboard click "New" and choose "Create new app."
  3. Name your app and "Create app"
  4. On your "Overview" page, click "Configure Add-ons"
  5. In the "Add-ons", and select a free "Heroku Postgres"
  6. Choose the "Hobby Dev - Free" plan
  7. Click "Heroku Postgress:: Database"
  8. Click "Setings" and the "View Credentials" you can find all needed information

Alternative: Download your own through this link

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors