This is a GraphQL server application that retrieves movies from an external API. It allows users to query for movie information using GraphQL.
- Fetch movie details by ID
- List all movies
- List featured movies
- Search for movies by genre
- Node.js
- Apollo Server
- GraphQL
- node-fetch
- Node.js (v14 or higher)
- npm (v6 or higher)
-
Clone the repository:
git clone https://github.com/your-username/movie-graphql-server.git cd movie-graphql-server
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add your API URL:API_URL=https://codeflix-api-sand.vercel.app/
To start the GraphQL server, run:
npm start