Thank you for taking the time to play with my Movie-Info application. Setup is relatively simple. The instructions are long only because I've tried to be explicit and give examples wherever possible.
This setup assumes you already have node.js and npm installed on your system. You can find instructions for installation at nodejs.org and npmjs.com.
- Clone the repo.
- Go to root directory and enter: npm install
- Get version 3 api_key from developers.themoviedb.org/3/getting-started/introduction
- From project root directory, go to server directory: cd ./server
- Enter the following: export TMDB_API_KEY={your version 3 api_key from themoviedb.org}
- Go back to project root directory and enter: export PORT={your desired port number}
- Start the server by entering the following: npm run server-dev
- Open a new tab in your browser with the following URI:
http://localhost:{your desired port number}/
- Explore different movies and movie title searches.
In a terminal on your system clone the repo and go to the root directory of the repo
In the root directory of the project, enter the following:
npm install
In your browser, go to
developers.themoviedb.org/3/getting-started/introduction
Follow the instructions to open an account (it should be free) and get an api_key. Please note that this repo uses Version 3 of the The Movie Database API. The key will be a string of about 32 characters. Once the api_key is acquired go to the project root directory and navigate to the server directory.
From the project root directory enter the following commands:
$ cd ./server
$ export TMDB_API_KEY={your themoviedb.org api_key}
For example: if your api_key='1234567890abcdefghij123456789012'
, you would do the following:
$ cd ./server
$ export TMDB_API_KEY='1234567890abcdefghij123456789012'
Now the server can access and utilize the api at https://api.themoviedb.org
$ export PORT={your desired port number}
Example: If the desired port to run your server on is 3333, enter the following in ./server directory
$ export PORT="3333"
In the root directory of the project, enter the following:
$ npm run server-dev
Open a new tab in your browser with the following URI:
http://localhost:{your desired port number}/
In this above case, {your desired port number} should be replaced with the value assigned to PORT
So, if {PORT}= 3333, you should set your browser address to
http://localhost:3333/
Click on a movie title to see details ...or...
Enter a title, or part of a title in the search bar ...or...
Click on a different page number and view other pages of the popular movies or search results.