Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

This project is a Movie Management application built with React and Vite. It provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

License

Notifications You must be signed in to change notification settings

NhanPhamThanh-IT/Movies-Hub-Website

Repository files navigation

Movie Management

This project is a Movie Management application built with React and Vite. It provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Table of Contents

Getting Started

Prerequisites

Before getting started, ensure that your system has all the necessary tools and libraries installed for smooth project execution. Below are the key requirements:

Main Requirements

  • Node.js (>=14.0.0): This is a JavaScript runtime environment required to build and run the application. You can check your installed version using the command:

    node -v

    If not installed, download and install it from the Node.js Official Website.

  • npm (>=6.0.0) or yarn (>=1.22.0): These are package managers used to install the necessary dependencies for the project.

    • Check the npm version:
      npm -v
    • Or check the yarn version (if using yarn):
      yarn -v

    If not installed, npm comes with Node.js, or you can install Yarn using:

    npm install -g yarn

Supporting Dependencies

  • API Backend: This project requires a backend API to fetch data. In this case, we use an online API from The Movie Database (TMDb). You need to register an account and obtain an API Key to use it in the project.

    Steps to get an API Key:

    1. Sign up for an account at TMDb.
    2. Go to the TMDb API Section and generate an API Key.
    3. Save the API Key and add it to your project configuration file (e.g., .env or directly in the source code).

Optional but Recommended

In addition to the mandatory requirements above, consider using the following tools for better workflow:

  • Git Logo Git: A version control system to track changes in your source code.
  • VS Code Logo VS Code (or a similar IDE): A powerful code editor for project development.
  • Postman: A useful tool to test API requests and responses before integrating them into the application.

Once you have all the prerequisites installed, you can proceed with setting up and running the project. 🚀

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/MovieManagement.git
    cd MovieManagement
  2. Install dependencies:
    npm install
    # or
    yarn install

Running the Application

To start the development server:

npm run dev
# or
yarn dev

Open http://localhost:5173 to view it in the browser. The page will reload if you make edits.

Project Structure

MovieManagement/
├── public/
├── src/
│   ├── components/
│   ├── constants/
│   ├── hooks/
│   ├── pages/
│   ├── routes/
│   ├── sections/
│   ├── utils/
│   ├── App.jsx
│   ├── main.jsx
│   └── ...
├── .gitignore
├── index.html
├── package.json
├── README.md
├── vite.config.js
└── ...

Available Scripts

In the project directory, you can run:

npm run dev or yarn dev

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

npm run build or yarn build

Builds the app for production to the dist folder. It correctly bundles React in production mode and optimizes the build for the best performance.

npm run serve or yarn serve

Serves the production build from the dist folder.

Learn More

To learn more about React and Vite, check out the following resources:

Official Plugins

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Conclusion

We hope you find this Movie Management application useful and easy to use. If you have any questions, suggestions, or issues, please feel free to open an issue on the GitHub repository. Contributions are also welcome!

Thank you for using our application!

About

This project is a Movie Management application built with React and Vite. It provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Topics

Resources

License

Stars

Watchers

Forks

Languages