bakshay96 / Fluid-AI-Assignment-

Movie Search App

Home Page:https://moviflix-ai.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fluid-AI-Assignment

🎬 Movie Flix - Movie Search Web Application

Welcome to Movie Flix, your go-to web application for searching movies. This application allows users to search for movies by their name and offers filtering and sorting options to enhance the search experience. Dive into the details of your favorite movies with just a click!

Objective

Create a basic prototype of a movie search web application using React.js. The prototype should demonstrate the ability to fetch movie data from an external API and display it in a simple user interface.

Submission Guidelines:

  • Display a list of popular movies by default.
  • Display a list of popular movies by default.
  • Implement the ability to fetch movie data from the OMDB API (http://www.omdbapi.com/) or any other movie database API of your choice.
  • Display search results in a basic format, including movie titles and release years.
  • When users click on a movie title from the search results, display a modal with additional details about the selected movie, such as plot summary, genre, and ratings.

πŸš€ Features

πŸ› οΈ Tech Stack

  • HTML: Structuring the content of the application.
  • CSS: Styling the application for a visually appealing user experience.
  • React.js: Building the dynamic and interactive user interface.
  • React Router DOM: Managing the application's routing to navigate between pages.
  • Context API: State management for sharing data across the application.
  • Chakra UI: A modern UI component library for creating a responsive and accessible design.

πŸ“Έ Screenshots

Home Page

Home Page

Search Results

Search Results

Movie Details

Movie Details

🏁 Getting Started

Follow these steps to get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Make sure you have the following installed:

  • Node.js
  • npm (Node Package Manager)

Installation

  1. Clone the repository:
    git clone https://github.com/bakshay96/Fluid-AI-Assignment-.git
    
  2. Navigate to the project directory:
    cd moviflix
    

Setting Up Project in local

Frontend

1) Setting up node environment

1) navigate to the Frontend directory
2) use node version 16 or 18.12.1 is recommended
3) run the command npm install or npm i --legacy-peer-deps it will install all the required Dependencies with no errors.

Setting Up Environment Variables

Create a .env file in the root directory and add your OMDB API key:

.env

   REACT_APP_OMDB_API_KEY=your_api_key_here

2) Starting frontend on localhost

(make sure you are confirming the URL of the server)

npm dev /*or*/ npm run dev

3) Making a Production-ready folder

npm run build

🌳 API Endpoints Here's a brief summary of the available endpoints in the Movie Flix API:

GET [/api/search?query=<movie_name>&year=<year>](http://www.omdbapi.com/?t=iron+man&y=2016&plot=full): Search for movies by name (and optionally year).
GET [/api/movie/:id:](http://www.omdbapi.com/?i=tt6073592&plot=full) Get detailed information about a specific movie by its IMDB ID.

πŸ“‚ Directory Structure ** Here's an overview of the project's directory structure:**

 movie-flix/
  β”œβ”€β”€ public/
  β”‚   β”œβ”€β”€ index.html
  β”‚   └── ...
  β”œβ”€β”€ src/
  β”‚   β”œβ”€β”€ components/
  β”‚   β”‚   β”œβ”€β”€ InputSearch.jsx
  β”‚   β”‚   β”œβ”€β”€ Movie.jsx
  β”‚   β”‚   β”œβ”€β”€ useFetch.js
      |   └── ...
  β”‚   β”œβ”€β”€ context/
  β”‚   β”‚   └── Context.jsx
  β”‚   β”œβ”€β”€ pages/
  β”‚   β”‚   β”œβ”€β”€ Home.jsx
  β”‚   β”‚   β”œβ”€β”€ SingleMovie.jsx
  β”‚   β”‚   └── ...
  |   β”œβ”€β”€ Routes/
  β”‚   β”‚   β”œβ”€β”€ MainRoutes.jsx
  β”‚   β”‚   └── ...
  β”‚   β”œβ”€β”€ App.js
  β”‚   β”œβ”€β”€ main.js
  β”‚   β”œβ”€β”€ index.css
  β”‚   └── ...
  β”œβ”€β”€ .env
  β”œβ”€β”€ package.json
  └── README.md

Tools used on this project

  • Visual Studio Code
  • Vite-JS template
  • Netlify for frontend deployment

Contact

If you want to contact me, you can reach me through the below handles.

linkedin GitHub

Thank you for using Movie Flix! We hope you enjoy discovering movies as much as we enjoyed building this application.

About

Movie Search App

https://moviflix-ai.netlify.app/


Languages

Language:JavaScript 54.2%Language:CSS 44.0%Language:HTML 1.8%