The Movie Search project provide an API for searching movies. It offers a functionality to search for movies and retrieve detailed information about them.
- API: Handles HTTP requests and interacts with other services.
- Elasticsearch: Contains information about top 1000 imdb movies.
- Redis: Caches requested data.
- RapidAPI: Integrates with rapidapi's movie search api.
Ensure you have the following dependencies installed:
- Docker
- Kubernetes (for deployment)
-
Clone the repository:
git clone https://github.com/TheFeij/Movie-Search-API
-
Navigate to the project directory:
cd Movie_Search_API
-
Start Docker containers:
docker-compose up
-
Deploy Kubernetes resources:
kubectl apply -f kubernetes/
- Access the API at
http://localhost:8080
when using docker compose. - When deployed with Kubernetes, access the API using the Kubernetes cluster IP and port 30000.
- Use the
/search
endpoint to search for movies.
- Search your queries:
- Endpoint:
/search?query=avatar
- This query will return movies and series related to "avatar"
- Endpoint:
- To run tests, use
make test
. - Check individual component directories for specific test instructions.
- To generate and view the Go documentation, run
make godoc
and access it athttp://localhost:6060
.
Contributions are welcome! Feel free to open issues or pull requests.