Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 653 Bytes

Readme.md

File metadata and controls

32 lines (26 loc) · 653 Bytes

Installation

git clone https://github.com/mohammadranjbar/imdb-wrapper.git
cd imdb-wrapper
npm install

Then go to OMDB register an Api-key then create a server-config.json with content like below, or pass these parameters as environment variables

{
      "MONGO_HOST":"localhost",
       "MONGO_PORT":"27017",
       "MONGO_USERNAME":"iusername",
       "MONGO_PASSWORD":"password",
       "MONGO_DB_NAME":"imdb",
      "SERVER_POSTERS_PATH": "./posters",
       "OMDB_API_KEY": "omdb_api_key",
      "PORT":4000
    }
npm start

API

https://renjer-imdb.herokuapp.com/api-docs/