GithubHelp home page GithubHelp logo

marcorichetta / cs50w-project1 Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 25.0 233 KB

CS50 Web Programming - Project1

Home Page: https://book-reviews-cs50-project1.herokuapp.com/

Python 54.81% CSS 3.47% HTML 41.72%
python flask heroku cs50 cs50w postgresql goodreads

cs50w-project1's Introduction

CS50W Project 1

Web Programming with Python and JavaScript

Use the app on Heroku

Usage

  • Register
  • Search books by name, author or ISBN
  • Get info about a book and submit your own review!

⚙️ Setup your own

# Clone repo
$ git clone https://github.com/marcorichetta/cs50-project1.git

$ cd cs50-project1

# Create a virtualenv (Optional but reccomended)
$ python3 -m venv myvirtualenv

# Activate the virtualenv
$ source myvirtualenv/bin/activate (Linux)

# Install all dependencies
$ pip install -r requirements.txt

# ENV Variables
$ export FLASK_APP = application.py # flask run
$ export DATABASE_URL = Heroku Postgres DB URI
$ export GOODREADS_KEY = Goodreads API Key. # More info: https://www.goodreads.com/api

DB Schema

Feel free to add your own improvements! DB

cs50w-project1's People

Contributors

marcorichetta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cs50w-project1's Issues

Usage of title()

While querying for ISBN, title, author from books table using the user entered wildcard (Line 161 in application.py) title() is not giving the proper result because there are values in DB which are not in this format.

I would suggest to get rid of that and may be just use ‘ILIKE’ operator in the query instead of ‘LIKE’ in this way the querying would be case-insensitive.

Let me know if this helps or my understanding is incorrect.

Cannot register or login

Screenshot from 2020-05-23 00-47-32
After your home page is loaded,It shows Internal server error 500.I Think there is an issue with database please tell appropriate commands to launch this.
Thanks a lot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.