Skip to content

Simple movies website project that fetch infos from The Movie DB API made with ReactJS

Notifications You must be signed in to change notification settings

electrikbox/ForEachMovies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

🎬ForEach Movies

fm-logo

👋 INTRO

Foreach Movies is an entrance test for ForEach Academy.
The project is a website made with ReactJS that displays lists of movies provide from The Movie DB API, based on genre, years, etc...
More information can be found in the rest of this readme.

🔗 LINK

Here is the deployed version of the project: foreachmovies.electrikbox.fr

⚙️ Install

Get repo

  • Start by cloning this repo:
git clone git@github.com:electrikbox/ForEachMovies.git
  • Change directory
cd ForEachMovies/foreach-movies-app/

🖱️ Usage

From the "foreach-movies-app" directory

  • Create a .env file at the root dir with your Movie DB api key
API_KEY=xxxxxxxxxxxxxxxxxxxx

Docker-compose for development

docker-compose up -d foreach-movies-dev

then wait a moment and go to http://localhost:3000/ you can stop it with:

docker-compose down foreach-movies-dev

With the Dockerfile for development

  • create the image:
# docker build -f Dockerfile.dev -t foreach-movies-dev .
  • then launch it:
docker run -it -p 3000:3000 -v ${PWD}:/usr/src/app \
-v /usr/src/app/node_modules \
-e WATCHPACK_POLLING=true foreach-movies-dev

you can stop it with:

docker stop <container_id>

Docker for deployement

  • Create the docker image for the app
docker build -t foreachmovies .
  • Run the docker container
docker run -p 80:80 foreachmovies

📑 Features

Here's the available urls:

Homepage

http://foreachmovies.electrikbox.fr/

Page containing:

  • the site header
  • a main section with a search bar
  • a footer (identical for each page)

Once the search is done, you will arrive at the next URL:

Search Result Page

http://foreachmovies.electrikbox.fr/movies/search?query=<film recherché>&page=1

Page displaying the search results as a list of cards with:

  • the movie title
  • the movie poster
  • the beginning of the description
  • the rating
  • a button to go to the details page

If you go directly to http://foreachmovies.electrikbox.fr/movies/search, you will see a message asking to perform a search (with the search bar in the header).

Movie Detail Page

http://foreachmovies.electrikbox.fr/movies/<movie_id>

Page containing more information about the movie:

  • English title
  • original title
  • production countries
  • rating
  • full description
  • movie links
  • list of movie genres
  • back button

By clicking on a genre, you will be redirected to the next URL:

Movies by Genre Page

http://foreachmovies.electrikbox.fr/moviesgenre

Page containing a dropdown menu with the list of genres provided by the API, once the genre is chosen, the list of movies with that genre appears.

Movies Page

http://foreachmovies.electrikbox.fr/movies

Page containing 3 dropdown filters:

  • genre
  • year
  • order

Upon arriving on the page, a list of movies appears with filters already applied (order by popularity and year 2024).
the page reloads the results when the filter changes.

🧑‍💻 Authors

Olive t'Servrancx on Linkedin and on Github

🪪 License

Copyright 2024 Olivier T'Servrancx

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Simple movies website project that fetch infos from The Movie DB API made with ReactJS

Topics

Resources

Stars

Watchers

Forks