Movie World is a website that allows you to explore and find out more about movies and TV shows. This app fetches data from The Movie DB's public API.
- Displays a list of recent and upcoming movies.
- Displays a list of recent and upcoming TV shows.
- Search for movies or TV shows by title.
- Sort or filter movies or TV shows by genre, year, and popularity.
- Display full details about the movie or TV show including synopsis, rating and more.
This app uses The Movie DB API to get movie and TV show data. You need to create an account at https://www.themoviedb.org/ to get the API key.
-
Clone this repository to your computer:
git clone https://github.com/shafygunawan/movie-world.git
-
Go to the project directory:
cd movie-world
-
Install the required dependencies with the npm command:
npm install
-
After that, you need to set your API key and other configurations inside this project. Open the
src/scripts/global/config.js
file and addAPI_KEY
,BASE_URL
,BASE_IMAGE_URL
, andDEFAULT_LANGUAGE
according to the API key you got from The Movie DB like the following example:const CONFIG = { API_KEY: "your_api_key", BASE_URL: "https://api.themoviedb.org/3", BASE_IMAGE_URL: "https://image.tmdb.org/t/p/w500", DEFAULT_LANGUAGE: "en-US", };
All the fields above are just examples, you can adjust to your conditions.
To run the application, use the following command:
npm run serve
The application will run at http://localhost:8080
.
To build the application in production mode, run the following command:
npm run build
To run ESLint checks on your code, run the following command:
npm run lint
This command will run ESLint on the ./src
directory and provide a report on potential code style issues or violations.
To sort your CSS files using PostCSS, run the following command:
npm run css-sorting
This command will run PostCSS to sort your CSS files and replace the original files with the sorted versions.
If you find this project useful and would like to support me, you can Buy Me a Coffee.
This project is licensed under the MIT License. More details can be found in the LICENSE file.
Thank you for visiting my project!