Welcome to the Code.Store Backend Task application. This project demonstrates the implementation of a backend service using NestJS to interact with the TMDB (The Movie Database) API. The application fetches popular movies and movie details, and generates PDF documents with this data.
- Fetch popular movies from TMDB.
- Fetch detailed information about a specific movie.
- Generate PDF documents containing movie information.
- Node.js (version 14.x or later)
- npm (version 6.x or later)
- TMDB API Key and API Read Access Token
To use the TMDB API, you need to register and obtain an API key and an API Read Access Token.
- Go to the TMDB website.
- Sign up for an account.
- Navigate to the API section in your account settings.
- Create an API key and generate an API Read Access Token.
Create a .env
file in the root of your project directory and add the following:
TMDB_API_READ_ACCESS_TOKEN=your_api_read_access_token_here
-
Clone the repository: git clone https://github.com/Timi2424/code_store-task.git
-
Navigate to the project directory: cd code-store-backend-task
-
Install the dependencies: npm install
-
Start the application: npm run start
The application will run on http://localhost:3000.
- GET /movies - Generates a PDF of popular movies.
- GET /movies/:{id} - Generates a PDF of a specific movie's details
Thank you to the recruitment team at Code.Store for considering my application. I look forward to the opportunity to discuss how I can contribute to your team.