The Movie Database API wrapped with GraphQL
- Node.js (v20.11.0)
- The Movie Database API Key
-
Get the Movie Database API Key from here.
-
Clone this project to your local directory.
-
Install dependencies using Yarn.
-
Copy
.env.sample
file as.env
in the root of this project. -
Set
.env
as following:TMDB_API_KEY=<YOUR TMDB API KEY> LANGUAGE=<ISO-639 language :: default en> REGION=<ISO-3166 region :: default US>
-
Run server
# Run as development mode yarn start:dev # Build server and run production yarn build && yarn start:prod
-
Check if the server is running properly on port
3000
.
-
Build docker image.
docker built -t <image-name> .
-
Run docker container with
.env
file.docker run -d --env-file .env <image-name>
-
Check if the server is running properly on port
3000
.