A GraphQL API built with NestJS that wraps The Movie Database (TMDB) API to provide movie and TV show data through a GraphQL interface.
- GraphQL API built with NestJS and Apollo Server
- Integration with TMDB API for movie and TV show data
- Type-safe GraphQL schema with TypeScript
- Environment configuration with validation
- Modular architecture following NestJS best practices
- Comprehensive test coverage with Jest
- Code quality tools (ESLint, Prettier)
- CI/CD pipeline with GitHub Actions
- Node.js (v18+)
- Yarn package manager
- TMDB API key (Get one here)
-
Install Node.js (v18 or higher) from nodejs.org
-
Install Yarn package manager (v4):
corepack enable corepack prepare [email protected] --activate
-
Generate an API token from TMDB API
-
Clone the repository:
git clone https://github.com/AlexMachin1997/TheOpenMovieDB-GraphQL-Example.git cd TheOpenMovieDB-GraphQL-Example
-
Install dependencies:
yarn install
-
Create a
.env
file in the root directory and add your TMDB API token:TMDB_API_TOKEN=your_api_token_here
-
Start the development server:
yarn start:dev
The GraphQL playground will be available at http://localhost:3000/graphql