{"id":23867189,"url":"https://github.com/panda4817/web50-2020-project-1","last_synced_at":"2026-05-08T10:36:39.101Z","repository":{"id":121705813,"uuid":"274436467","full_name":"Panda4817/Web50-2020-Project-1","owner":"Panda4817","description":"CS50 Web programming in Python and JavaScript project.","archived":false,"fork":false,"pushed_at":"2020-06-23T15:09:12.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T20:00:49.196Z","etag":null,"topics":["bookshelf","flask","postgresql","python3"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Panda4817.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-23T15:05:47.000Z","updated_at":"2022-03-06T23:49:21.000Z","dependencies_parsed_at":"2024-06-18T23:07:05.388Z","dependency_job_id":null,"html_url":"https://github.com/Panda4817/Web50-2020-Project-1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Panda4817/Web50-2020-Project-1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Panda4817%2FWeb50-2020-Project-1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Panda4817%2FWeb50-2020-Project-1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Panda4817%2FWeb50-2020-Project-1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Panda4817%2FWeb50-2020-Project-1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Panda4817","download_url":"https://codeload.github.com/Panda4817/Web50-2020-Project-1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Panda4817%2FWeb50-2020-Project-1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32776959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bookshelf","flask","postgresql","python3"],"created_at":"2025-01-03T10:16:51.877Z","updated_at":"2026-05-08T10:36:39.091Z","avatar_url":"https://github.com/Panda4817.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web50 2020 Project 1 - Book review website\r\n\r\nUsers can register and then login to the website to leave reviews for books and see other reviews. Users can see data about the book like , author, publication year, ISBN, goodreads average rating and review count. There is also an API GET request which returns json formatted data about a book through its API.\r\n\r\n## Set up\r\n\r\nCreated a PostgresSQL database via Heroku and created three tables: books, reviews and users.\r\nI also created a .env file to set all my environment variables and load them automatically when flask is run.\r\nthe .env file contains DATABASE_URL, GOODREADS_KEY, FLASK_SECRET_KEY, FLASK_APP=path_to_application.py and FLASK_DEBUG=1.\r\n\r\n## import.py\r\n\r\nA python program used to read and copy books.csv data into the books table in the psql database.\r\n\r\n## application.py\r\n\r\nThis file contains all the routes and config for the web application.\r\nThe routes include: index, login, logout, register, account page, search page, book page and API.\r\n\r\n## login_helpers.py\r\n\r\nThis file contains the function login_required that checks a user is logged in before they can go to certain pages on the website.\r\n\r\n## templates folder\r\n\r\nContains all the html files that are rendered through routes in application.py.\r\n\r\n## static folder\r\n\r\nContains app.js with some javascript functions used in real-time checking of username and password fields.\r\nContains styles.scss and styles.css with all css for all html pages. Most of the styling is through bootstrap 4.\r\n\r\n## requirements.txt\r\n\r\nA file containing all the Python packages I have used in this project.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanda4817%2Fweb50-2020-project-1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanda4817%2Fweb50-2020-project-1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanda4817%2Fweb50-2020-project-1/lists"}