Skip to content

xurros/honeypotflixplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎥 honeypotflixplay

Typing SVG

honeypotflixplay is the client-side app to be used in conjunction with the movie_api5 and it's also a replacement of myFlix-client.

🛠️ Build Tools

honeypotflixplay uses Parcel to transpile JSX into JavaScript and SCSS into CSS, and bundle the project into as few files as possible to serve to the client. Parcel is currently set up in development mode. As such, the code is not minified.
To start the build tools, run the command parcel src/index.html in the powershell terminal. The project will be hosted at localhost:1234 and will have live-reload enabled.

🧩 Framework

This app uses React as a framework to display all views in a single page.

👓 Views

View Description
<MainView> This is the main view that contains each other element. The main view displays a list of <MovieCard> elements when no movie is selected. Clicking on a movie title will update MainView.state.selectedMovie with the selected movie. This triggers the rendering of the appropriate <MovieView> in place of the list of list of <MovieCard>s.
<MovieCard> This is a simple element displaying the title of a movie. It is passed the onMovieClick function from the <MainView> as a parameter. The onclick function for the rendered <MovieCard> updates the MainView.state.selectedMovie with the clicked element's movie.
<MovieView> This element displays details for the movie passed into the movie parameter. The element has a back button, which when clicked, updated the MainView.state.selectedMovie to null, triggering the rendering of the list of <MovieCard> elements.

demo: https://main--honeypotflixplay.netlify.app/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published