Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amy & Jan | Carets #13

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a101e49
Initial Setup: Added movie model, collection, and respective views
JNEdrozo Dec 18, 2017
fa62cb5
imported models, collections and views for Movie and Movie List to ap…
ayjlee Dec 18, 2017
662ea03
Merge branch 'master' of https://github.com/JNEdrozo/VideoStoreConsum…
ayjlee Dec 18, 2017
b3e4c0d
added templates for movie and movie details page
ayjlee Dec 18, 2017
1c7b12e
now able to fetch movies from our VideoStoreAPI, need to work on rend…
ayjlee Dec 18, 2017
aa2d766
Added render & initialize methods in movie & movie_list views
JNEdrozo Dec 19, 2017
6b90f08
Updated movie and movie_list render methods to display all movies in …
JNEdrozo Dec 19, 2017
098e2be
Added searchMovies() in movie_list_view.js and search(query) custom f…
JNEdrozo Dec 19, 2017
b0ff2e1
implemented viewRentalMovies function and view
ayjlee Dec 19, 2017
8836e08
drafting logic for adding a movie to rental library
ayjlee Dec 19, 2017
334fe08
Added Feature to add book to API
JNEdrozo Dec 19, 2017
c5721f1
Displayed images and started foundation styling
JNEdrozo Dec 20, 2017
8121d0a
Added alert after a movie is added to rental library
JNEdrozo Dec 20, 2017
c14388f
implemented a movie details view and added event handlers for travers…
ayjlee Dec 21, 2017
f394edb
Styling: Results can be viewed after searching through movie view, an…
JNEdrozo Dec 21, 2017
94f320f
Added movie_list styling and movie_details_view styling
JNEdrozo Dec 21, 2017
eea4236
Adjust card width to be more responsive with screen size (used viewpo…
JNEdrozo Dec 21, 2017
1379847
Styling: Adjusted width of search bar with viewport units
JNEdrozo Dec 21, 2017
6f2d055
Styling: Added search bar width in media query
JNEdrozo Dec 21, 2017
5350eba
Adjusted h2 margin-left in smaller width screen
JNEdrozo Dec 21, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
now able to fetch movies from our VideoStoreAPI, need to work on rend…
…ering view for the movie list
  • Loading branch information
ayjlee committed Dec 18, 2017
commit 1c7b12e1381774f6d99d91eca3ba32ff4b82902f
9 changes: 6 additions & 3 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -6,12 +6,15 @@ import './css/styles.css';
import $ from 'jquery';
import _ from 'underscore';
import Movie from 'models/movie';
import MovieList from 'collects/movie_list';
import MovieView from 'views/movie';
import MovieListView from 'view/movie_list';
import MovieList from 'collections/movie_list';
import MovieView from 'views/movie_view';
import MovieListView from 'views/movie_list_view';

// ready to go
$(document).ready(function() {
const movies = new MovieList();
const fetchedMovies = movies.fetch();
console.log(fetchedMovies);

$('#main-content').append('<p>Hello World!</p>');

2 changes: 1 addition & 1 deletion src/collections/movie_list.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import Movie from 'models/movie';

const MovieList = Backbone.Collection.extend({
model: Movie,
url: 'localhost:3000/movies',
url: 'http://localhost:3000/movies',
parse(response) {
response.forEach(function(movieAttrs) {
if (movieAttrs.inventory == null) {