Git Product home page Git Product logo

cs50w-project1's Introduction

Project 1

Author: Peerky (edx username)

Web Programming with Python and JavaScript

This is an implementation of project 1 of the 2018 CS50W edx/harvard course following the specifications layed out here: https://docs.cs50.net/web/2018/x/projects/1/project1.html

Minor additions to the requirements:

  • Optional strict search, for example to find books with short titles without a result mess ("it")
  • Optional year range search by using a dash (e.g. 1972-1974)
  • Star-display of averaged local reviews
  • Review of logged in user can be submitted / edited on book details page

The goodreads API key must be stored in a shell variable: export GOODREADS_API_KEY=xxx

Video: https://youtu.be/2sP4hvINlkQ

Wrong colors recorded by OBS studio. Strict search at the end used incorrectly (didn't re-check the checkbox, "Christie" shouldn't have been found with strict search, but "Agatha Christie" should have.) Didn't show json api functionality (but is implemented)

Files: . ├── application.py -> the flask app containing all routes ├── db_setup │   ├── create_tables.py -> table definitions and function to create tables │   └── import.py -> create tables and import books.csv (should be located in same directory) ├── README.md -> this file ├── requirements.txt -> requests module added ├── static │   ├── css │   │   ├── style.css -> SASS-generated CSS │   │   └── style.scss -> SASS file │   └── images -> book image used in app │   ├── favicon.ico │   ├── icon.png │   └── license.txt -> Spoiler: free ├── templates -> mostly self explanatory if not otherwise noted │   ├── 404.html │   ├── book_details.html -> single book details with reviews and review form │   ├── book_results.html -> list of search results │   ├── footer.html │   ├── header.html -> Generic header with navigation / logout / search │   ├── layout.html │   ├── login.html │   ├── registration.html │   └── search.html

cs50w-project1's People

Contributors

pkro avatar

Watchers

 avatar  avatar

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.