Skip to content

The Movie Databsde API wrapped with GraphQL

License

Notifications You must be signed in to change notification settings

hwhang0917/ql-movie-api

Repository files navigation

QL Movie Api

The Movie Database API wrapped with GraphQL

Author License Coverage Badge

Requirements

  • Node.js (v20.11.0)
  • The Movie Database API Key

Quick start guide

  1. Get the Movie Database API Key from here.

  2. Clone this project to your local directory.

  3. Install dependencies using Yarn.

  4. Copy .env.sample file as .env in the root of this project.

  5. Set .env as following:

    TMDB_API_KEY=<YOUR TMDB API KEY>
    LANGUAGE=<ISO-639 language :: default en>
    REGION=<ISO-3166 region :: default US>
  6. Run server

    # Run as development mode
    yarn start:dev
    # Build server and run production
    yarn build && yarn start:prod
  7. Check if the server is running properly on port 3000.

Docker

  1. Build docker image.

    docker built -t <image-name> .
  2. Run docker container with .env file.

    docker run -d --env-file .env <image-name>
  3. Check if the server is running properly on port 3000.

Reference