- Node >=
v12
(this may or may not cause issues, but the codebase was created withv12
, so it's best to usenvm
and make sure you're on the same version). nodemon
for running the API and watching files for changes (it's not included as a dep, as it was installed globally when this codebase was created).- You need your own API key from The Movie Database API, as each is personal and there isn't one included in this repo
- Clone this repo
- As one is not included for security, create a
.env
file with two variables as follows...
MOVIE_API_BASE_URL=https://api.themoviedb.org/3
MOVIE_API_KEY=<THE_MOVIE_DB_API_KEY_YOU_CREATED>
- Install dependencies with
yarn
ornpm
yarn run dev
will bundle things up and watch usingnodemon
(See: prereq #1)- You can test for a response using Postman by creating a
GET
request that callslocalhost:8080/movies
(You should get back an array of popular movies...)