This project is a web application built with React for the frontend and Flask for the backend. It allows users to browse and search for movies using the TMDB API.
- Node.js
- npm (Node Package Manager)
- Python
- Flask
- Navigate to the frontend directory:
cd frontend - Install the dependencies:
npm install
- Start the React development server:
npm run start
- Open your browser and go to
http://localhost:3000to see the application running.
- Navigate to the backend directory:
cd backend - Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
- Install the dependencies:
pip install -r requirements.txt
- Start the Flask server:
flask run
- The Flask server will be running at
http://localhost:5000.
- Navigate to the backend directory if you haven't already:
cd backend - Initialize the database tables:
This command will create the necessary tables in your database.
flask init-database
- To populate the database with movie data from TMDB, run the following command:
This command will fetch movie data from the TMDB API and insert it into your database tables.
flask sync-database-movies
This project is licensed under the MIT License.