This is a clone of the IMDb (Internet Movie Database) API built using Django and Django REST Framework. It allows users to access movie and TV show information, including details about cast, crew, ratings, and more.
- Search: Users can search for movies and TV shows using various criteria such as title, genre, year, etc.
- Movie Details: Users can retrieve detailed information about a specific movie or TV show, including cast, crew, ratings, plot summary, and more.
- Top Rated: Users can view the top-rated movies and TV shows based on user ratings.
- User Ratings: Registered users can rate movies and TV shows, and their ratings will contribute to the overall rating for each title.
- Authentication: User registration and authentication system is implemented to allow secure access to certain features such as rating movies.
- swaggerUI: Swagger UI integrated to use API routes easily
- Python 3.x
- Django 3.x
- Django REST Framework 3.x
- MySQL (or any other database supported by Django)
-
Clone the repository:
git clone https://github.com/piyush310/imdb-api-clone.git
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
source venv/bin/activate -
Install the dependencies:
pip install -r requirements.txt
-
Setup the database:
-
Update the database settings in imdb/settings.py to match your database configuration.
-
Apply migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
-
Access the API at
http://localhost:8000/docs or http://localhost:8000/redoc
-
Clone the repository:
git clone https://github.com/piyush310/imdb-api-clone.git
-
Docker build
docker build --no-cache -t imdb-app . -
Run docker image
docker run -p 8000:8000 imdb-app -
Access the API at
http://localhost:8000/docs or http://localhost:8000/redoc
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request detailing your changes.
This project was inspired by the IMDb website and API.
If you have any questions or suggestions, feel free to contact
