Skip to content

Commit

Permalink
edit docs, add copyrights
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkenney committed Nov 27, 2023
1 parent 036dd92 commit d1fe076
Show file tree
Hide file tree
Showing 16 changed files with 80 additions and 7 deletions.
7 changes: 7 additions & 0 deletions docs/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ Script.js, the conductor of the orchestra! This JavaScript file keeps things mov

With a bit of code wizardry, it handles user interactions, animations, and ensures everything runs like a well-choreographed dance scene in a musical.

---

## [Wall.js](https://github.com/brwali/PopcornPicks/blob/master/src/recommenderapp/static/script.js)

Wall.js includes the functions that make the wall work, including ajax calls to the app getting the reviews from the users, and to omdb to get movie data.


---

## [Stylesheet.css](https://github.com/brwali/PopcornPicks/blob/master/src/recommenderapp/static/stylesheet.css)
Expand Down
2 changes: 1 addition & 1 deletion docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ For example, for keyword "love" the top-10 searches that PopcornPicks returns co

# [test_util.py](https://github.com/brwali/PopcornPicks/blob/master/test/test_util.py)

Here test cases are written to check the functionality of the email notifier feature, i.e., for every function corresponding to the feature - test_beautify_feedback_data(), test_create_colored_tags(), test_create_movie_genres() and test_send_email_to_user()
Here test cases are written to check the functionality of the email notifier feature, i.e., for every function corresponding to the feature - test_beautify_feedback_data(), test_create_colored_tags(), test_create_movie_genres(), test_send_email_to_user(), test_accounts(), test_get_wall_posts(), test_get_username(), test_get_recent_movies(), test_friends() and test_submit_review()
5 changes: 5 additions & 0 deletions src/init.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

--Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
--This code is licensed under MIT license (see LICENSE for details)

--@author: PopcornPicks
CREATE DATABASE IF NOT EXISTS PopcornPicksDB;

-- Switch to the PopcornPicksDB database
Expand Down
5 changes: 5 additions & 0 deletions src/movies.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
--This code is licensed under MIT license (see LICENSE for details)

--@author: PopcornPicks

INSERT INTO movies (idMovies, name, imdb_id) VALUES (862, 'Toy Story (1995)', 'tt0114709');
INSERT INTO movies (idMovies, name, imdb_id) VALUES (8844, 'Jumanji (1995)', 'tt0113497');
INSERT INTO movies (idMovies, name, imdb_id) VALUES (15602, 'Grumpier Old Men (1995)', 'tt0113228');
Expand Down
2 changes: 1 addition & 1 deletion src/recommenderapp/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Copyright (c) 2023 Aditya Pai, Ananya Mantravadi, Rishi Singhal, Samarth Shetty
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
Expand Down
6 changes: 6 additions & 0 deletions src/recommenderapp/static/script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
*/
$(document).ready(function () {
$(function () {
$("#searchBox").autocomplete({
Expand Down
11 changes: 7 additions & 4 deletions src/recommenderapp/static/wall.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
*/
// Function to handle Get Started button click
function backToLandingPage() {
// Navigate to the search page
Expand Down Expand Up @@ -36,17 +42,14 @@ function loadPosts(){
}

function fetchMovieData(imdbID){

var apikey = '77da67f1';

return new Promise(function(resolve, reject){
$.ajax({
type: 'GET',
url: 'http://www.omdbapi.com/',
dataType: 'json',
data: {
i: imdbID,
apikey: apikey,
apikey: '77da67f1',
},
success: function(response) {
resolve(response);
Expand Down
6 changes: 6 additions & 0 deletions src/recommenderapp/templates/landing_page.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
-->
<!DOCTYPE html>
<html>
<head>
Expand Down
6 changes: 6 additions & 0 deletions src/recommenderapp/templates/login.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
-->
<!DOCTYPE html>
<html>

Expand Down
6 changes: 6 additions & 0 deletions src/recommenderapp/templates/profile.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
-->
<!DOCTYPE html>
<html lang="en">

Expand Down
6 changes: 6 additions & 0 deletions src/recommenderapp/templates/review.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
-->
<!DOCTYPE html>
<html>
<head>
Expand Down
6 changes: 6 additions & 0 deletions src/recommenderapp/templates/search_page.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
-->
<!DOCTYPE html>
<html>
<head>
Expand Down
6 changes: 6 additions & 0 deletions src/recommenderapp/templates/success.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
-->
<!DOCTYPE html>
<html>
<head>
Expand Down
6 changes: 6 additions & 0 deletions src/recommenderapp/templates/wall.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
-->
<!DOCTYPE html>
<html>
<head>
Expand Down
2 changes: 1 addition & 1 deletion src/recommenderapp/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Copyright (c) 2023 Aditya Pai, Ananya Mantravadi, Rishi Singhal, Samarth Shetty
Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
This code is licensed under MIT license (see LICENSE for details)
@author: PopcornPicks
Expand Down
5 changes: 5 additions & 0 deletions test/test_init.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--Copyright (c) 2023 Nathan Kohen, Nicholas Foster, Brandon Walia, Robert Kenney
--This code is licensed under MIT license (see LICENSE for details)

--@author: PopcornPicks

CREATE DATABASE IF NOT EXISTS testDB;

-- Switch to the testDB database
Expand Down

0 comments on commit d1fe076

Please sign in to comment.